[docs] [issue11634] misleading comment on PyBytes_FromStringAndSize

STINNER Victor report at bugs.python.org
Tue Mar 22 21:22:18 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

PyObject *
PyBytes_FromString(const char *str)
{
    register size_t size;
    ...
    size = strlen(str);
    ...
}

PyBytes_FromString() does compute the input string size using strlen().

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11634>
_______________________________________


More information about the docs mailing list