[PySide] Bug with new hash table feature

Hugo Parente Lima hugo.lima at openbossa.org
Wed May 30 22:25:25 CEST 2012


On Wednesday, May 30, 2012 01:46:41 PM Nathan Smith wrote:
> 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
> return.

Create a change on gerrit to push your patch, will be better =]

http://qt-project.org/wiki/Gerrit-Introduction
http://qt-project.org/wiki/Setting-up-Gerrit

Just ask if you need help to push the patch to gerrit
 
> Nathan
> 
> 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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120530/6dbcd246/attachment.sig>


More information about the PySide mailing list