Message117551
> 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. |
|
Date |
User |
Action |
Args |
2010-09-28 21:35:02 | pitrou | set | recipients:
+ pitrou, lemburg, loewis, kermode, vstinner |
2010-09-28 21:35:01 | pitrou | link | issue9602 messages |
2010-09-28 21:35:01 | pitrou | create | |
|