This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ajaksu2
Recipients ajaksu2
Date 2008-08-27.04:29:46
SpamBayes Score 1.7388338e-08
Marked as misclassified No
Message-id <1219811392.29.0.37826020023.issue3694@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-08-27 04:29:53ajaksu2setrecipients: + ajaksu2
2008-08-27 04:29:52ajaksu2setmessageid: <1219811392.29.0.37826020023.issue3694@psf.upfronthosting.co.za>
2008-08-27 04:29:50ajaksu2linkissue3694 messages
2008-08-27 04:29:48ajaksu2create