preferring [] or () in list of error codes?

mh at pixar.com mh at pixar.com
Tue Jun 9 18:40:42 CEST 2009


John Machin <sjmachin at lexicon.net> wrote:
> T=lambda x:x in(25401,25402,25408);import dis;dis.dis(L);dis.dis(T)

I've learned a lot from this thread, but this is the
niftiest bit I've picked up... thanks!

-- 
Mark Harrison
Pixar Animation Studios



More information about the Python-list mailing list