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 kermode, lemburg, loewis, pitrou, vstinner
Date 2010-09-28.21:35:00
SpamBayes Score 4.2921267e-05
Marked as misclassified No
Message-id <1285709697.3183.2.camel@localhost.localdomain>
In-reply-to <201009282331.08392.victor.stinner@haypocalc.com>
Content
> Le mardi 28 septembre 2010 22:24:56, vous avez écrit :
> > I disagree. PyObject_As*Buffer functions are remnants of the old buffer
> > API in Python 2.x. They are here only to ease porting of existing C
> > code, but carefully written 3.x code should switch to
> > PyObject_GetBuffer() (or one of the dedicated typecodes in
> > PyArg_ParseTuple: "y*", "w*", etc.).
> 
> Do you mean that PyObject_As*Buffer functions are deprecated? The documentation 
> doesn't tell that the new buffer API should be use instead.

Well, the documentation should be updated then. Given that the old
buffer API doesn't exist anymore, the old functions don't have any
practical purpose except for ease of porting code.
History
Date User Action Args
2010-09-28 21:35:02pitrousetrecipients: + pitrou, lemburg, loewis, kermode, vstinner
2010-09-28 21:35:01pitroulinkissue9602 messages
2010-09-28 21:35:01pitroucreate