[New-bugs-announce] [issue3694] Undetected error in _struct.pack_into
Daniel Diniz
report at bugs.python.org
Wed Aug 27 06:29:52 CEST 2008
New submission from Daniel Diniz <ajaksu at gmail.com>:
The following code leads to XXX Undetected errors in debug builds of
trunk and 3.0:
import _struct
_struct.pack_into(b"8", bytearray(1), None)
Besides that, there's something fishy happening in non-debug builds:
2.6:
>>> _struct.pack_into(b"8", bytearray(1), None);
>>> _struct.pack_into(b"8", bytearray(1), None);
>>> import sys
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: an integer is required
3.0:
>>> _struct.pack_into(b"8", bytearray(1), None)
>>> _struct.pack_into(b"8", bytearray(1), None)
SystemError: Objects/longobject.c:433: bad argument to internal function
Found with Fusil.
----------
components: Extension Modules
messages: 72005
nosy: ajaksu2
severity: normal
status: open
title: Undetected error in _struct.pack_into
versions: Python 2.6, Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3694>
_______________________________________
More information about the New-bugs-announce
mailing list