[issue3439] create a numbits() method for int and long types
STINNER Victor
report at bugs.python.org
Fri Dec 12 00:05:41 CET 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Oops, you're right Mark: PyErr_Clear() is needed! New patch:
- don't catch error different than PyExc_OverflowError in
long_numbits()
- clear error in long_numbits()
- fix doc indentation
About the indentation: i'm using >>svndiff='svn
diff --diff-cmd="/usr/bin/diff" -x "-ub"'<< instead of svn diff
because my editor removes trailing spaces.
I prefer to keep the "fast path" (use _PyLong_NumBits) as *you*
proposed in another message: Message75767.
Added file: http://bugs.python.org/file12327/numbits-6.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3439>
_______________________________________
More information about the Python-bugs-list
mailing list