[issue3694] Undetected error in _struct.pack_into
Georg Brandl
report at bugs.python.org
Wed Aug 27 10:44:43 CEST 2008
Georg Brandl <georg at python.org> added the comment:
The problem is that, unlike PyInt_AsSsize_t, PyLong_AsSsize_t expects
its argument to already be a long object and else raises the SystemError.
It should probably behave like PyInt_AsSsize_t and raise the TypeError
since in 3.0 it's used in many places where PyInt_AsSsize_t was used.
----------
nosy: +georg.brandl
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3694>
_______________________________________
More information about the Python-bugs-list
mailing list