[issue21983] segfault in ctypes.cast

2014-07-14 Thread Anthony LaTorre
Changes by Anthony LaTorre : -- components: +ctypes ___ Python tracker <http://bugs.python.org/issue21983> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21983] segfault in ctypes.cast

2014-07-14 Thread Anthony LaTorre
New submission from Anthony LaTorre: I get a segfault when trying to cast a string to a structure. >>> import ctypes >>> class Struct(ctypes.Structure): ... _fields_ = [('a', ctypes.c_uint32)] ... >>> s = '0'*100 >>> c