[issue2263] struct.pack() + numpy int raises SystemError
engelbert gruber
report at bugs.python.org
Tue Feb 10 00:37:40 CET 2009
engelbert gruber <grubert at users.sourceforge.net> added the comment:
in 2.7 svn _struct.c
formatdef native_table[] = {
{'B', sizeof(char), 0, nu_ubyte, np_ubyte},
formatdef bigendian_table[]
{'B', 1, 0, nu_ubyte, bp_uint},
formatdef lilendian_table[]
{'B', 1, 0, nu_ubyte, lp_uint},
np_ubyte calls get_long b/lp_uint call get_wrapped_ulong which calls
#define PyInt_Check(op) \
PyType_FastSubclass((op)->ob_type, Py_TPFLAGS_INT_SUBCLASS)
but ob_type is set to BASE flags INT_SUBCLASS i snot set.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2263>
_______________________________________
More information about the Python-bugs-list
mailing list