Serhiy Storchaka added the comment:

We have _testcapi.INT_MAX.

I guess different exceptions raised on 64-bit platform. First parser checks 
that a number can be represented as Py_ssize_t (i.e. <= PY_SSIZE_T_MAX). Here 
"Too many decimal digits in format string" can be raised. Then precision passed 
to internal function which accepts int and checked to be <= INT_MAX before cast 
to int. Here "precision too big" can be raised.

----------

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

Reply via email to