Order in metaclass

Thomas Heller theller at python.net
Wed Oct 13 21:32:20 CEST 2004


Nicolas Fleury <nid_oizo at yahoo.com_remove_the_> writes:

> like very much to share what I have once it is completed.  What I'm
> doing looks a lot like a metastruct module (see example in previous
> post).

In this case, you could also look at the ctypes module, it implements C
compatible structures and unions.

And for your original question: why do you insist on your new syntax,
why don't you simply (as ctypes also does it) define the attributes in a
list, when they have to have a certain order?

Thomas



More information about the Python-list mailing list