[issue3258] ctypes assertion failure in trunk

Kevin Watters report at bugs.python.org
Wed Jul 9 04:30:50 CEST 2008


Kevin Watters <kevinwatters at gmail.com> added the comment:

>From reading through PEP 3118 once I'm not entirely clear on the role 
stgdict->format is supposed to be taking here, but I did get comtypes to 
compile and run successfully by changing line 910 from

stgdict->format = alloc_format_string("&", itemdict->format);

to

stgdict->format = alloc_format_string("&", itemdict->format ? itemdict-
>format : "P");

(Where "P" is just struct.pack's void pointer format string.)

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3258>
_______________________________________


More information about the Python-bugs-list mailing list