[Python-Dev] 2.4a2, and @decorators

Michael Hudson mwh at python.net
Thu Aug 5 15:30:20 CEST 2004


Michael Chermside <mcherm at mcherm.com> writes:

> Michael Hudson writes:
>> > that would be insane,
>>
>> class C(random.choice([dict, list])):
>>     pass
>>
>> is my favourite example of this :-)
>
> Where is THAT monstrocity used!?

Well, it's not, I hope :-)

It might occasionally be useful for proving to people that Python
really doesn't believe in declarations.

Cheers,
mwh

-- 
  Need to Know is usually an interesting UK digest of things that
  happened last week or might happen next week. [...] This week,
  nothing happened, and we don't care.
                           -- NTK Now, 2000-12-29, http://www.ntk.net/


More information about the Python-Dev mailing list