Mark Dickinson <dicki...@gmail.com> added the comment:

Victor,

Thanks for the updated patch.

I think you need to do a PyErr_Clear after the 'return PyLong_FromSize_t' line.

To be safe, you should probably check the exception type first, and either 
do a PyErr_Clear and continue if it's an OverflowError, or just return 
NULL if it's some other exception.  It's true that _PyLong_NumBits can't 
raise anything other than OverflowError at the moment, but you never know 
when that might change. :)

I'm also getting a 'malformed table' warning when building the 
documentation.

_______________________________________
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

Reply via email to