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 eric.snow
Recipients asvetlov, eric.snow, kristjan.jonsson, qualab, serhiy.storchaka, vstinner
Date 2014-04-14.14:39:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397486376.07.0.683416666611.issue20434@psf.upfronthosting.co.za>
In-reply-to
Content
I was going to say we should consider changing the API of _PyBytes_Resize() and _PyString_Resize().  However, having looked at the two functions, I guess it makes sense.

Looking at the patch, I'd argue that we still need to set the string to NULL in the error case.  Only in the out-of-memory case do the two functions change it to NULL for you.
History
Date User Action Args
2014-04-14 14:39:36eric.snowsetrecipients: + eric.snow, kristjan.jonsson, vstinner, asvetlov, serhiy.storchaka, qualab
2014-04-14 14:39:36eric.snowsetmessageid: <1397486376.07.0.683416666611.issue20434@psf.upfronthosting.co.za>
2014-04-14 14:39:36eric.snowlinkissue20434 messages
2014-04-14 14:39:35eric.snowcreate