Message131750
The comment string above the implementation of _PyBytes_FromStringAndSize in Objects/bytesobject.c starts with:
/*
For both PyBytes_FromString() and PyBytes_FromStringAndSize(), the
parameter `size' denotes number of characters to allocate, not
counting any null terminating character.
This is misleading since PyBytes_FromString() has no 'size' parameter.
The problem also exists for PyString in Python 2.x |
|
Date |
User |
Action |
Args |
2011-03-22 14:41:23 | eli.bendersky | set | recipients:
+ eli.bendersky, docs@python |
2011-03-22 14:41:22 | eli.bendersky | set | messageid: <1300804882.95.0.132860096.issue11634@psf.upfronthosting.co.za> |
2011-03-22 14:41:22 | eli.bendersky | link | issue11634 messages |
2011-03-22 14:41:22 | eli.bendersky | create | |
|