This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author johansen
Recipients gvanrossum, jafo, jcea, johansen
Date 2009-01-29.01:24:13
SpamBayes Score 3.848529e-08
Marked as misclassified No
Message-id <1233192255.84.0.660493233973.issue2159@psf.upfronthosting.co.za>
In-reply-to
Content
I haven't been able to find any of the patches listed in the comments,
but it does look like providing a nb_nonzero method in the module would
solve our issue.  PyObject_IsTrue checks the tp_as_number methods before
the sequence and mapping methods.  I'm not sure if it's safe to count on
this behavior as always being true, but for 2.4 and the dbmmodule, it
would work.
History
Date User Action Args
2009-01-29 01:24:15johansensetrecipients: + johansen, gvanrossum, jafo, jcea
2009-01-29 01:24:15johansensetmessageid: <1233192255.84.0.660493233973.issue2159@psf.upfronthosting.co.za>
2009-01-29 01:24:14johansenlinkissue2159 messages
2009-01-29 01:24:13johansencreate