Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: And this code will crash a debug build:
>>> class X(long): ... def __oct__(self): ... return 'foo'.upper() ... >>> '%o' % X() Assertion failed: buf[sign] == '0', file ..\..\Objects\stringobject.c, line 4059 ---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11145> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com