[Python-Dev] 2.4a2, and @decorators (original) (raw)
Michael Hudson mwh at python.net
Wed Aug 4 12:31:37 CEST 2004
- Previous message: [Python-Dev] Re: 2.4a2, and @decorators
- Next message: [Python-Dev] 2.4a2, and @decorators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
James Y Knight <foom at fuhm.net> writes:
Now I'm damn sure I'd never write code that says except FooError and f() or MyErrors[5]: because that would be insane,
I think
class C(random.choice([dict, list])): pass
is my favourite example of this :-)
Cheers, mwh
-- That being done, all you have to do next is call free() slightly less often than malloc(). You may want to examine the Solaris system libraries for a particularly ambitious implementation of this technique. -- Eric O'Dell, comp.lang.dylan (& x-posts)
- Previous message: [Python-Dev] Re: 2.4a2, and @decorators
- Next message: [Python-Dev] 2.4a2, and @decorators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]