[Python-3000] Fwd: Re: Octal

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 15 00:44:33 CET 2007


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


More information about the Python-3000 mailing list