Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'integers.': 0.16; 'message- id:@fido.openend.se': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'to:addr:pearwood.info': 0.16; "to:name:steven d'aprano": 0.16; 'string': 0.17; 'laura': 0.18; 'versions': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'examples': 0.24; 'header:In-Reply-To:1': 0.24; 'sort': 0.25; "i've": 0.25; 'correct': 0.28; 'decimal': 0.29; 'far,': 0.29; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'code': 0.30; 'but': 0.36; 'there': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'stuff': 0.38; 'does': 0.39; 'where': 0.40; 'subject:with': 0.40; 'header:Message-Id:1': 0.61; 'card': 0.63; 'account': 0.66; 'biggest': 0.67; 'received:89': 0.80; 'subject:leading': 0.84 To: "Steven D'Aprano" cc: python-list@python.org, lac@openend.se From: Laura Creighton Subject: Re: Integers with leading zeroes In-Reply-To: Message from "Steven D'Aprano" of "Wed, 22 Jul 2015 12:14:08 +1000." <55aefc70$0$1656$c3e8da3$5496439d@news.astraweb.com> References: <55ab37fb$0$1661$c3e8da3$5496439d@news.astraweb.com> <55aeea13$0$1669$c3e8da3$5496439d@news.astraweb.com> <55aefc70$0$1656$c3e8da3$5496439d@news.astraweb.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14612.1437549179.1@fido> Date: Wed, 22 Jul 2015 09:12:59 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Wed, 22 Jul 2015 09:13:00 +0200 (CEST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437549189 news.xs4all.nl 2914 [2001:888:2000:d::a6]:60115 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94349 The biggest use I have for decimal numbers that begin with 0 is in credit card numbers, account numbers and the like where the first check you do is 'does this thing have the correct number of digits'. So far, all the examples I've been able to find in my code -- which does this sort of stuff a lot -- is looking at string versions of decimal numbers, but I suspect there is old code out there in the wild which just used integers. Laura