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 vstinner
Recipients docs@python, eli.bendersky, vstinner
Date 2011-03-22.20:22:18
SpamBayes Score 0.012200635
Marked as misclassified No
Message-id <1300825338.68.0.334550495358.issue11634@psf.upfronthosting.co.za>
In-reply-to
Content
PyObject *
PyBytes_FromString(const char *str)
{
    register size_t size;
    ...
    size = strlen(str);
    ...
}

PyBytes_FromString() does compute the input string size using strlen().
History
Date User Action Args
2011-03-22 20:22:18vstinnersetrecipients: + vstinner, eli.bendersky, docs@python
2011-03-22 20:22:18vstinnersetmessageid: <1300825338.68.0.334550495358.issue11634@psf.upfronthosting.co.za>
2011-03-22 20:22:18vstinnerlinkissue11634 messages
2011-03-22 20:22:18vstinnercreate