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

Terry Reedy tjreedy at
Tue Jun 9 14:32:17 EDT 2009

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

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


More information about the Python-list mailing list