|
|
|
|
|
by jbox
6206 days ago
|
|
"Metaclasses won't fly in this case, since the order of struct members has to be kept." Couldn't you use a creation counter in a metaclasses and assign order to the attributes as they are added? (like Django's forms use to keep track of field order) |
|
http://code.djangoproject.com/browser/django/trunk/django/fo... creation of the counter on individual fields
http://code.djangoproject.com/browser/django/trunk/django/fo... application of the counter upon field harvesting