Serhiy Storchaka added the comment: > Serhiy: can you clarify this remark? Where do you see the OverflowError? > The current exception and message look fine to me, so maybe I'm > misunderstanding what you're talking about:
Sorry, I have been confused (and confuse you) by the variety of PyLong_As* and PyNumber_* functions. Now I see PyNumber_AsSsize_t(x, NULL) doesn't raise OverflowError but truncates its argument. The patch LGTM. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16772> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com