Eric Snow added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20434>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to