[Python-Dev] New Module: CommandLoop

Raymond Hettinger raymond.hettinger at verizon.net
Mon Feb 20 00:59:07 CET 2006


[Raymond Hettinger]
> 1) The "chars" variable can be eliminated and the "while chars" and 
> "c=chars.pop(0)" sequence simplified to just:
>    for c in reversed(str):

Actually, that should have been just:
      for c in str:
         . . .


Raymond


More information about the Python-Dev mailing list