[Python-ideas] Let's be more orderly!
Ethan Furman
ethan at stoneleaf.us
Wed May 15 19:12:32 CEST 2013
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.
--
~Ethan~
More information about the Python-ideas
mailing list