[Python-Dev] New Module: CommandLoop (original) (raw)
Raymond Hettinger raymond.hettinger at verizon.net
Mon Feb 20 00:59:07 CET 2006
- Previous message: [Python-Dev] New Module: CommandLoop
- Next message: [Python-Dev] New Module: CommandLoop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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
- Previous message: [Python-Dev] New Module: CommandLoop
- Next message: [Python-Dev] New Module: CommandLoop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]