Serhiy Storchaka added the comment:

I think that raising OverflowError exceptions should be avoided if this is 
possible. If some function requires non-negative integer and raises ValueError 
for small negative integers and OverflowError for large negative integers, it 
is desirable to make it raising ValueError for all negative integers. If some 
function truncates integer arguments to specified limit it shouldn't raise 
OverflowError for large positive integers, but truncate them to that limit.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15988>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to