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 pitrou
Recipients ebfe, pitrou, vstinner
Date 2008-12-26.21:57:16
SpamBayes Score 5.354762e-06
Marked as misclassified No
Message-id <1230328637.71.0.051297878638.issue4751@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

Very good idea. However, you don't need to discriminate for the bytes
type specifically. When a buffer is taken on the object (with
PyObject_GetBuffer()), the object is internally "locked" until the
buffer is release with PyBuffer_Release(). Try with a bytearray and
you'll see: if you resize the bytearray while hashing it in another
thread, you'll get a BufferError exception.

All in all, it should make your code and macros much simpler.
History
Date User Action Args
2008-12-26 21:57:17pitrousetrecipients: + pitrou, vstinner, ebfe
2008-12-26 21:57:17pitrousetmessageid: <1230328637.71.0.051297878638.issue4751@psf.upfronthosting.co.za>
2008-12-26 21:57:17pitroulinkissue4751 messages
2008-12-26 21:57:16pitroucreate