[Python-Dev] 2.4a2, and @decorators

Michael Hudson mwh at python.net
Wed Aug 4 12:31:37 CEST 2004


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)


More information about the Python-Dev mailing list