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 alex
Recipients alex, ezio.melotti, vstinner
Date 2014-07-21.17:38:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405964309.44.0.884917870385.issue22023@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-07-21 17:38:29alexsetrecipients: + alex, vstinner, ezio.melotti
2014-07-21 17:38:29alexsetmessageid: <1405964309.44.0.884917870385.issue22023@psf.upfronthosting.co.za>
2014-07-21 17:38:29alexlinkissue22023 messages
2014-07-21 17:38:29alexcreate