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 <rep...@bugs.python.org> <http://bugs.python.org/issue18780> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com