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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2012年12月24日.20:15:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356380115.98.0.739133485355.issue16773@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 3 int() accepts UserString argument without explicit base and reject it with explicit base.
>>> from collections import UserString
>>> int(UserString('100'))
100
>>> int(UserString('100'), 2)
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
TypeError: int() can't convert non-string with explicit base
In 2.7 the same behavior also for MutableString and bytearray.
History
Date User Action Args
2012年12月24日 20:15:16serhiy.storchakasetrecipients: + serhiy.storchaka
2012年12月24日 20:15:15serhiy.storchakasetmessageid: <1356380115.98.0.739133485355.issue16773@psf.upfronthosting.co.za>
2012年12月24日 20:15:15serhiy.storchakalinkissue16773 messages
2012年12月24日 20:15:15serhiy.storchakacreate

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