Can't get around "IndexError: list index out of range"

John Machin sjmachin at lexicon.net
Wed Oct 4 05:09:41 CEST 2006


Terry Reedy wrote bloated code:

> if sys.argv[1:2] != []:

if sys.argv[1:2]:

:-)




More information about the Python-list mailing list