[PySide] Bug with new hash table feature

Nathan Smith nathanjsmith at gmail.com
Wed May 30 20:46:41 CEST 2012

Thanks John!  I was returning 0L, but changed it to -1L.  The hash function
now raises a RuntimeError when called on an invalid object.  I've opened
bug PYSIDE-72 for this and will attach an updated patch to it using the -1L


On Wed, May 30, 2012 at 1:38 PM, John Ehresman <jpe at wingware.com> wrote:

> On 5/30/12 2:31 PM, Nathan Smith wrote:
>> Hi Hugo,
>> Thanks for getting back to me.  I thought that was the case, and the
>> PyErr_format function is called within the isValid(PyObject *pyObj)
>> function, but no exception is ever raised in Python.
> Is -1 returned iff an exception is set?  -1 indicates an exception; see
> the discussion of tp_hash in http://docs.python.org/c-api/**typeobj.html<http://docs.python.org/c-api/typeobj.html>
> John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120530/6e6fe3c5/attachment.html>

More information about the PySide mailing list