homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients Peter.Wentworth, eric.smith, ezio.melotti, mark.dickinson, petri.lehtinen, rhettinger
Date 2011年05月20日.11:53:21
SpamBayes Score 1.363798e-12
Marked as misclassified No
Message-id <1305892403.68.0.463685162518.issue12127@psf.upfronthosting.co.za>
In-reply-to
Content
Do you have any use case for x = 0050?
I don't any reason to adding leading 0s to a literal, but with int() the situation is different because you might get string with leading 0s from somewhere else. Also note that the int() function is more flexible and there are other similar "inconsistencies":
>>> x = int('12')
>>> x
12
>>> x = 12
 File "<stdin>", line 1
 x = 12
 ^
SyntaxError: invalid character in identifier
I suggest closing this as "rejected".
History
Date User Action Args
2011年05月20日 11:53:23ezio.melottisetrecipients: + ezio.melotti, rhettinger, mark.dickinson, eric.smith, petri.lehtinen, Peter.Wentworth
2011年05月20日 11:53:23ezio.melottisetmessageid: <1305892403.68.0.463685162518.issue12127@psf.upfronthosting.co.za>
2011年05月20日 11:53:21ezio.melottilinkissue12127 messages
2011年05月20日 11:53:21ezio.melotticreate

AltStyle によって変換されたページ (->オリジナル) /