New submission from Alex Gaynor: http://hg.python.org/cpython/file/2.7/Objects/unicodeobject.c#l840
Specifically it calls "PyObject_Str", which will return a PyStringObject * (cast to a PyObject *), and then calls "PyUnicode_GET_SIZE", which is of course totally incorrect. This code was originally back-ported from 3.0 -> 2.6, so I imagine no one caught the bug then. ---------- components: Interpreter Core, Unicode messages: 223594 nosy: alex, ezio.melotti, haypo priority: normal severity: normal status: open title: PyUnicode_FromFormat is broken on python 2 versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22023> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com