PEP-0315--Enhanced While Loop: An idea for an alternative syntax
Erik Max Francis
max at alcyone.com
Wed Feb 18 01:38:05 EST 2004
Paul Rubin wrote:
> I'm still scratching my head over that PEP. Got a real-world code
> sample
> that it would improve?
do:
line = inputFile.readline()
while line:
...
line = inputFile.readline()
--
__ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
\__/ The doors of Heaven and Hell are adjacent and identical.
-- Nikos Kazantzakis
More information about the Python-list
mailing list