Sébastien Celles <[email protected]> added the comment:
About raising exception with converting integer value that should overflow
maybe we should have a parameter
ctypes.c_uint8(256, raise=True)
will raise an exception but
ctypes.c_uint8(256)
will silently return c_ubyte(0)
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34810>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com