STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue3439> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com