[Pyrex] Pyrex 0.9.2 treats buffer methods incorrectly

Phillip J. Eby pje at telecommunity.com
Tue May 4 19:16:28 CEST 2004


I just tried upgrading from Pyrex 0.7.2 to 0.9.2, and got errors claiming 
that the __getreadbuffer__, __getwritebuffer__, __getcharbuffer__, and 
__getsegcount__ special methods have a "void" return type and should not 
return values.

My understanding from the docs referenced on the "Special Methods" page was 
that these methods are supposed to return lengths.  See:

     http://www.python.org/doc/current/api/buffer-structs.html

which claims that these methods return integers.






More information about the Pyrex mailing list