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 amaury.forgeotdarc, benjamin.peterson, brett.cannon, christian.heimes, loewis, pitrou
Date 2008-08-23.23:26:44
SpamBayes Score 4.160883e-06
Marked as misclassified No
Message-id <1219534005.78.0.51575155874.issue3651@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

Making Py_buffer INCREF the original object is IMO the right thing to
do, because in most cases letting the original object disappear means
the memory region will become invalid as well. If you don't want the
INCREF, you can pass NULL as the obj parameter to PyBuffer_FillInfo() -
a piece of code in unicodeobject.c does just that.

However, since this decision was made recently (at the same time the s*
format codes were introduced), it is not reflected in the buffer API
documentation.
History
Date User Action Args
2008-08-23 23:26:45pitrousetrecipients: + pitrou, loewis, brett.cannon, amaury.forgeotdarc, christian.heimes, benjamin.peterson
2008-08-23 23:26:45pitrousetmessageid: <1219534005.78.0.51575155874.issue3651@psf.upfronthosting.co.za>
2008-08-23 23:26:45pitroulinkissue3651 messages
2008-08-23 23:26:44pitroucreate