Message178096
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. |
|
Date |
User |
Action |
Args |
2012-12-24 20:15:16 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2012-12-24 20:15:15 | serhiy.storchaka | set | messageid: <1356380115.98.0.739133485355.issue16773@psf.upfronthosting.co.za> |
2012-12-24 20:15:15 | serhiy.storchaka | link | issue16773 messages |
2012-12-24 20:15:15 | serhiy.storchaka | create | |
|