Ganesh Kathiresan <ganesh3...@gmail.com> added the comment:
Hi All, thanks for the input. Yeah, the current behavior makes sense, if overflow exception is needed, we can use PyLong_AsLong. I guess my confusion was from the doc: > set *overflow to 1 or -1, respectively, and return -1; > Returns -1 on error. Use PyErr_Occurred() to disambiguate. It's not particularly clear if overflow is an `error` here, but again a quick compile and run will give you the answer. You can take a call if we have to have an explicit statement saying: no exception raised on overflow ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42665> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com