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 mark.dickinson
Recipients Peter.Wentworth, eric.smith, ezio.melotti, mark.dickinson, nadeem.vawda, petri.lehtinen, rhettinger
Date 2011年05月20日.12:09:42
SpamBayes Score 3.453907e-09
Marked as misclassified No
Message-id <1305893383.15.0.192491749407.issue12127@psf.upfronthosting.co.za>
In-reply-to
Content
Well, I'd personally like to see those leading zeros accepted at some point in Python's future, for the sake of cleanliness and consistency. Not just consistency with int(), but also e.g. with float literals:
>>> 0050.
50.0
>>> 0050
 File "<stdin>", line 1
 0050
 ^
SyntaxError: invalid token
I'm just not sure whether we're at that point yet.
I don't find the PEP 3127 argument that we should protect people from subsequent confusion in other languages with 'leading zero implies octal' semantics at all convincing.
On the other hand, I do see the case for not having Python 3 silently behave differently from Python 2.
It seems worth a discussion, at least.
History
Date User Action Args
2011年05月20日 12:09:43mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, eric.smith, nadeem.vawda, ezio.melotti, petri.lehtinen, Peter.Wentworth
2011年05月20日 12:09:43mark.dickinsonsetmessageid: <1305893383.15.0.192491749407.issue12127@psf.upfronthosting.co.za>
2011年05月20日 12:09:42mark.dickinsonlinkissue12127 messages
2011年05月20日 12:09:42mark.dickinsoncreate

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