Message80457
When trying to create a sub-subclass of a ctypes.Structure, the behavior
is not as expected.
An executable example that describes the problem in detail and
demonstrates the issue is available at
http://paste.turbogears.org/paste/29555 and also attached.
The failing behavior is near the beginning, following the description.
Three unsuccessful workarounds follow.
The expected behavior is found at the end, where a final workaround has
been implemented.
Can this behavior be improved in subsequent releases of ctypes? If not,
can ctypes at least support the workaround natively (perhaps by
providing a method in the Structure class that performs the workaround
and can be called by a sub-subclass during __init__)? |
|
Date |
User |
Action |
Args |
2009-01-24 16:04:19 | jaraco | set | recipients:
+ jaraco, theller |
2009-01-24 16:04:19 | jaraco | set | messageid: <1232813059.45.0.979222906271.issue5042@psf.upfronthosting.co.za> |
2009-01-24 16:04:18 | jaraco | link | issue5042 messages |
2009-01-24 16:04:17 | jaraco | create | |
|