[issue2587] PyString_FromStringAndSize() to be considered unsafe

Alexander Belopolsky report at bugs.python.org
Thu Apr 10 19:52:26 CEST 2008


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Wed, Apr 9, 2008 at 8:18 PM, Guido van Rossum <report at bugs.python.org> wrote:

> >  [*sigh* i wish we didn't use a signed size type all over the place]
>
>  What would you use for error returns then?
>

res == (size_t)-1  or res == 0 && PyErr_Occured()

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2587>
__________________________________


More information about the Python-bugs-list mailing list