Message176494
http://docs.python.org/2/library/ctypes.html#ctypes.Structure._anonymous_
"An optional sequence that lists the names of unnamed (anonymous) fields".
If you feed it a string, such as _offset, it will print a very interesting error:
...
File "C:\roundup\.\roundup\backends\portalocker.py", line 70, in <module>
class A_OFFSET_UNION(Union):
AttributeError: type object '_OFFSET_UNION' has no attribute '_'
Considering complexity that ctypes already has, the simple check that _anonymous_ is a sequence (and not a string) will make our lifes easier. |
|
Date |
User |
Action |
Args |
2012-11-27 21:29:50 | techtonik | set | recipients:
+ techtonik |
2012-11-27 21:29:49 | techtonik | set | messageid: <1354051789.98.0.293941478089.issue16566@psf.upfronthosting.co.za> |
2012-11-27 21:29:49 | techtonik | link | issue16566 messages |
2012-11-27 21:29:48 | techtonik | create | |
|