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 eli.bendersky
Recipients docs@python, eli.bendersky
Date 2011-03-22.14:41:22
SpamBayes Score 2.226155e-08
Marked as misclassified No
Message-id <1300804882.95.0.132860096.issue11634@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-03-22 14:41:23eli.benderskysetrecipients: + eli.bendersky, docs@python
2011-03-22 14:41:22eli.benderskysetmessageid: <1300804882.95.0.132860096.issue11634@psf.upfronthosting.co.za>
2011-03-22 14:41:22eli.benderskylinkissue11634 messages
2011-03-22 14:41:22eli.benderskycreate