Mark Dickinson <[email protected]> added the comment: Looks like this was changed in a checkin by Tim Peters in r21099; before r21099, PyLong_AsUnsignedLongLong raised OverflowError for negative numbers. After the checkin, it raised TypeError. I suspect the change was inadvertent.
Tim, any comments? Lisandro, do you have any interest in contributing a patch for this? The patch should change the exception type, fix the docs, add a test or two for the fixed behaviour of PyLong_AsUnsignedLongLong to Modules/_testcapimodule.c, and fix the test_struct test for the 'Q' format code. ---------- nosy: +tim_one _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue5175> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
