Message195631
>>> class I(int):
... def __str__(self):
... return 'spam'
...
>>> '%i' % (I(42),)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: Objects/unicodeobject.c:13595: bad argument to internal function
This issue is related to issue18738 and will be fixed when use PyNumber_ToBase() for any int subclass (not only for bool). |
|
Date |
User |
Action |
Args |
2013-08-19 14:10:34 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner |
2013-08-19 14:10:34 | serhiy.storchaka | set | messageid: <1376921434.69.0.557024484243.issue18780@psf.upfronthosting.co.za> |
2013-08-19 14:10:34 | serhiy.storchaka | link | issue18780 messages |
2013-08-19 14:10:34 | serhiy.storchaka | create | |
|