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

Terry Reedy tjreedy at udel.edu
Tue Jun 9 20:32:17 CEST 2009


mh at pixar.com wrote:
> 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!

If you are doing a lot of dissing, starting with
from dis import dis
saves subsequent typing.

tjr





More information about the Python-list mailing list