[New-bugs-announce] [issue18780] SystemError when formatting int subclass
Serhiy Storchaka
report at bugs.python.org
Mon Aug 19 16:10:34 CEST 2013
New submission from Serhiy Storchaka:
>>> 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).
----------
messages: 195631
nosy: haypo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: SystemError when formatting int subclass
type: crash
versions: Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18780>
_______________________________________
More information about the New-bugs-announce
mailing list