Message71821
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. |
|
Date |
User |
Action |
Args |
2008-08-23 23:26:45 | pitrou | set | recipients:
+ pitrou, loewis, brett.cannon, amaury.forgeotdarc, christian.heimes, benjamin.peterson |
2008-08-23 23:26:45 | pitrou | set | messageid: <1219534005.78.0.51575155874.issue3651@psf.upfronthosting.co.za> |
2008-08-23 23:26:45 | pitrou | link | issue3651 messages |
2008-08-23 23:26:44 | pitrou | create | |
|