Message 303908 - Python tracker

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.

Content
In 2.7 "%U" is not recognized in the format string.

>>> class Name(Structure):
...     _fields_ = []
...     _anonymous_ = ["x"]
...     x = 42
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: '%U' is specified in _anonymous_ but not in _fields_