[issue2159] dbmmodule inquiry function is performance prohibitive

johansen report at bugs.python.org
Thu Jan 29 02:24:15 CET 2009


johansen <johansen at sun.com> added the comment:

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.

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


More information about the Python-bugs-list mailing list