Stefan Krah added the comment: OverflowError seems like a good choice if only values in the range of a C long are accepted. ValueError would perhaps be more intuitive, since the user normally only cares about the accepted range of input values rather than the internal details.
---------- nosy: +skrah _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20539> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com