A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/046866.html below:

[Python-Dev] 2.4a2, and @decorators

[Python-Dev] 2.4a2, and @decoratorsMichael 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4