[issue12142] Reference cycle when importing ctypes

poq report at bugs.python.org
Tue May 31 19:07:52 CEST 2011


poq <poq at gmx.com> added the comment:

Tests succeed with this change.

There is only one use of _array_type, which is in the same module. This use is presumably tested, because the test fails if I change the line to _array_type = type(Structure).

In fact, everything must behave exactly the same after this change, because the two values are identical:

>>> from ctypes import *
>>> type(c_int * 3) is type(Array)
True

----------

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


More information about the Python-bugs-list mailing list