This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author techtonik
Recipients techtonik
Date 2012-11-27.21:29:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354051789.98.0.293941478089.issue16566@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-11-27 21:29:50techtoniksetrecipients: + techtonik
2012-11-27 21:29:49techtoniksetmessageid: <1354051789.98.0.293941478089.issue16566@psf.upfronthosting.co.za>
2012-11-27 21:29:49techtoniklinkissue16566 messages
2012-11-27 21:29:48techtonikcreate