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

mh at mh at
Tue Jun 9 12:40:42 EDT 2009

John Machin <sjmachin at> 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