On 05/15/2013 09:40 AM, Ethan Furman wrote:
On 05/15/2013 09:27 AM, Amaury Forgeot d'Arc wrote:
There is probably a way to get rid of the "metaclass=" part. I'm not sure to like it, though.
class OrderedDict(metaclass=OrderedDictBuilder): pass
class foo(OrderedDict): b = 1 a = 2
Argh, please disregard -- I should have read more carefully.