[issue28474] WinError(): Python int too large to convert to C long
Josh Rosenberg
report at bugs.python.org
Wed Oct 19 21:16:20 EDT 2016
Josh Rosenberg added the comment:
You can't use I as a format code safely; it silently ignores/wraps overflow on the conversion, where i raises on overflow. The unsigned converters are basically useless for resilient code in 99% of cases.
I *think* I remember some private utility functions for doing this using O& though, not sure if they're available in callproc.c...
----------
nosy: +josh.r
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28474>
_______________________________________
More information about the Python-bugs-list
mailing list