[issue3694] Undetected error in _struct.pack_into
report at bugs.python.org
Wed Feb 11 16:04:22 CET 2009
Daniel Diniz <ajaksu at gmail.com> added the comment:
Looks like both Undetected errors were corrected by Victor's patches,
which Benjamin committed around rev66693, so trunk only needs a test.
Here are the patches.
I think IndexError fits better (and matches trunk), as the issue is that
None is passed as "offset", which should be an Integral. If you
disagree, I'll modify the patch. Is PyErr_Format'ing the exception desired?
BTW, there's a warning in _struct.c:180 -> warning: ‘get_ulong’ defined
but not used, should I open a new issue?
Added file: http://bugs.python.org/file13027/pynumber_assizet_py3k.diff
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list