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, vstinner
Date 2013-08-19.14:10:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376921434.69.0.557024484243.issue18780@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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).
History
Date User Action Args
2013-08-19 14:10:34serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2013-08-19 14:10:34serhiy.storchakasetmessageid: <1376921434.69.0.557024484243.issue18780@psf.upfronthosting.co.za>
2013-08-19 14:10:34serhiy.storchakalinkissue18780 messages
2013-08-19 14:10:34serhiy.storchakacreate