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 <>
In Python 3 int() accepts UserString argument without explicit base and reject it with explicit base.

>>> from collections import UserString
>>> int(UserString('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.
Date User Action Args
2012-12-24 20:15:16serhiy.storchakasetrecipients: + serhiy.storchaka
2012-12-24 20:15:15serhiy.storchakasetmessageid: <>
2012-12-24 20:15:15serhiy.storchakalinkissue16773 messages
2012-12-24 20:15:15serhiy.storchakacreate