[Python-Dev] C.E.R. Thoughts

Josiah Carlson jcarlson at uci.edu
Fri Oct 14 07:15:06 CEST 2005


Technical Support of Intercable Co <support at intercable.ru> wrote:
> 
> And why not
> if len(sys.argv) > 1 take sys.argv[1] == 'debug':
>     ...
> 
> It was not so bad :-)
> 
> A = len(sys.argv)==0 take None or sys.argv[1]
> 
> Sorry for being noisy :-)

The syntax for 2.5 has already been decided upon.  Except for an act by
Guido, it is likely to stay (None if len(sys.argv) == 0 else sys.argv[1]).

 - Josiah



More information about the Python-Dev mailing list