[Python-3000] Fwd: Re: Octal (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 15 00:44:33 CET 2007
- Previous message: [Python-3000] Fwd: Re: Octal
- Next message: [Python-3000] Fwd: Re: Fwd: Re: Octal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Raymond Hettinger wrote:
The use cases for zfill() correspond to the cases where leading zeros are meaningfully interpreted as decimals (this includes phone and social security numbers, account numbers, and whatnot).
They're NOT numbers! They're STRINGS!
Leading zeroes would only be disallowed in python source code. Things like int("00123") would still work and be decimal.
-- Greg
- Previous message: [Python-3000] Fwd: Re: Octal
- Next message: [Python-3000] Fwd: Re: Fwd: Re: Octal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]