Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94374
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <antoon.pardon@rece.vub.ac.be> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.056 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'creighton': 0.09; 'stored': 0.10; 'wed,': 0.15; '11:09': 0.16; 'integers.': 0.16; 'received:adsl-dyn.isp.belgacom.be': 0.16; 'wrote:': 0.16; 'string': 0.17; 'laura': 0.18; 'versions': 0.20; '2015': 0.20; 'am,': 0.23; 'performing': 0.23; 'examples': 0.24; 'header:In- Reply-To:1': 0.24; 'sort': 0.25; "i've": 0.25; 'header:User- Agent:1': 0.26; '+0200,': 0.27; 'format,': 0.27; 'correct': 0.28; 'decimal': 0.29; 'far,': 0.29; 'code': 0.30; 'received:be': 0.30; 'operations': 0.31; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'stuff': 0.38; 'does': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'subject:with': 0.40; 'charset:windows-1252': 0.62; 'card': 0.63; 'information': 0.63; 'account': 0.66; 'biggest': 0.67; 'jul': 0.72; 'maths': 0.84; 'received:195.238': 0.84; 'subject:leading': 0.84 |
| X-Belgacom-Dynamic | yes |
| X-Cloudmark-SP-Filtered | true |
| X-Cloudmark-SP-Result | v=1.1 cv=r3/LV5qEOeRNqOlObU3fPeZ+G8vFrxRTI9UozocECbw= c=1 sm=2 a=2354W9g8axZVFZPWLtcA:9 a=pILNOxqGKmIA:10 a=6-iLkHf-57KAbj3N:21 a=3Mf0xXdaPYHrj52w:21 |
| X-IronPort-Anti-Spam-Filtered | true |
| X-IronPort-Anti-Spam-Result | A2CRAQAYtq9V/zHY9VENTsVvgl4CggYRAQEBAQEBAYUuAQEEMUcRCxgJDAoPCQMCAQIBRRMIAogvtjuEHY4mhGYBAQEHAiCLTIUNCgyEFQEElFeMMpkShCSDOAEBAQ |
| Date | Wed, 22 Jul 2015 17:27:47 +0200 |
| From | Antoon Pardon <antoon.pardon@rece.vub.ac.be> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Integers with leading zeroes |
| References | <55ab37fb$0$1661$c3e8da3$5496439d@news.astraweb.com> <mailman.823.1437499340.3674.python-list@python.org> <55aeea13$0$1669$c3e8da3$5496439d@news.astraweb.com> <mailman.845.1437527447.3674.python-list@python.org> <55aefc70$0$1656$c3e8da3$5496439d@news.astraweb.com> <mailman.855.1437549189.3674.python-list@python.org> <monmk7$420$1@speranza.aioe.org> |
| In-Reply-To | <monmk7$420$1@speranza.aioe.org> |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.869.1437578956.3674.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1437578956 news.xs4all.nl 2934 [2001:888:2000:d::a6]:59350 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:94374 |
Show key headers only | View raw
On 07/22/2015 11:09 AM, alister wrote: > On Wed, 22 Jul 2015 09:12:59 +0200, Laura Creighton wrote: > >> 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 > > This type of information should be stored as a string not any type of > numeric format, if you are not performing maths on it then it is a string > & not a number. Does the same condition hold for strings? If you are not performing string operations on something, it is not a string? -- Antoon Pardon.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Integers with leading zeroes Steven D'Aprano <steve@pearwood.info> - 2015-07-19 15:39 +1000
Re: Integers with leading zeroes Ian Kelly <ian.g.kelly@gmail.com> - 2015-07-18 23:46 -0600
Re: Integers with leading zeroes "Skybuck Flying" <skybuck2000@hotmail.com> - 2015-07-19 10:19 +0200
Re: Integers with leading zeroes Rick Johnson <rantingrickjohnson@gmail.com> - 2015-07-19 12:58 -0700
Re: Integers with leading zeroes Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-07-21 19:21 +0200
Re: Integers with leading zeroes sohcahtoa82@gmail.com - 2015-07-21 10:58 -0700
Re: Integers with leading zeroes Emile van Sebille <emile@fenx.com> - 2015-07-21 11:06 -0700
Re: Integers with leading zeroes sohcahtoa82@gmail.com - 2015-07-21 11:38 -0700
Re: Integers with leading zeroes sohcahtoa82@gmail.com - 2015-07-21 11:41 -0700
Re: Integers with leading zeroes Steven D'Aprano <steve@pearwood.info> - 2015-07-22 10:55 +1000
Re: Integers with leading zeroes Chris Angelico <rosuav@gmail.com> - 2015-07-22 11:10 +1000
Re: Integers with leading zeroes Steven D'Aprano <steve@pearwood.info> - 2015-07-22 12:14 +1000
Re: Integers with leading zeroes Chris Angelico <rosuav@gmail.com> - 2015-07-22 14:16 +1000
Re: Integers with leading zeroes Laura Creighton <lac@openend.se> - 2015-07-22 09:12 +0200
Re: Integers with leading zeroes alister <alister.nospam.ware@ntlworld.com> - 2015-07-22 09:09 +0000
Re: Integers with leading zeroes Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-07-22 17:27 +0200
Re: Integers with leading zeroes Grant Edwards <invalid@invalid.invalid> - 2015-07-22 15:47 +0000
Re: Integers with leading zeroes MRAB <python@mrabarnett.plus.com> - 2015-07-22 16:38 +0100
Re: Integers with leading zeroes Grant Edwards <invalid@invalid.invalid> - 2015-07-22 15:50 +0000
Re: Integers with leading zeroes MRAB <python@mrabarnett.plus.com> - 2015-07-22 17:24 +0100
Re: Integers with leading zeroes Chris Angelico <rosuav@gmail.com> - 2015-07-23 08:32 +1000
Re: Integers with leading zeroes Laura Creighton <lac@openend.se> - 2015-07-22 09:31 +0200
Re: Integers with leading zeroes Ben Finney <ben+python@benfinney.id.au> - 2015-07-22 18:40 +1000
Re: Integers with leading zeroes Marko Rauhamaa <marko@pacujo.net> - 2015-07-22 12:10 +0300
Re: Integers with leading zeroes Laura Creighton <lac@openend.se> - 2015-07-22 11:38 +0200
Re: Integers with leading zeroes Marko Rauhamaa <marko@pacujo.net> - 2015-07-22 13:26 +0300
Re: Integers with leading zeroes Grant Edwards <invalid@invalid.invalid> - 2015-07-22 13:51 +0000
Re: Integers with leading zeroes Rustom Mody <rustompmody@gmail.com> - 2015-07-22 07:03 -0700
Re: Integers with leading zeroes Steven D'Aprano <steve@pearwood.info> - 2015-07-23 01:14 +1000
Re: Integers with leading zeroes Grant Edwards <invalid@invalid.invalid> - 2015-07-22 15:20 +0000
Re: Integers with leading zeroes Michael Torrie <torriem@gmail.com> - 2015-07-22 20:11 -0600
Re: Integers with leading zeroes Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-07-24 18:23 +1200
Re: Integers with leading zeroes Chris Angelico <rosuav@gmail.com> - 2015-07-24 16:28 +1000
Re: Integers with leading zeroes alister <alister.nospam.ware@ntlworld.com> - 2015-07-24 13:16 +0000
csiph-web