[issue6071] no longer possible to hash arrays

Jan Hosang report at bugs.python.org
Sat Sep 26 11:49:16 CEST 2009


Jan Hosang <jan.hosang at gmail.com> added the comment:

I stumbled upon the following function:

static Py_ssize_t
convertbuffer(PyObject *arg, void **p, char **errmsg)
in Python/getargs.c

The first thing the function does is checking if the object implements 
the old buffer api, but also fails if pb->bf_releasebuffer != NULL. So I 
guess it's also making sure the new buffer api is not implemented.

What's the thought behind this? Removing that condition fixes three of 
the failing tests but breaks none.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6071>
_______________________________________


More information about the Python-bugs-list mailing list