Python Success Stories or Nightmares
Paul Rubin
phr-n2003b at NOSPAMnightsong.com
Sun Feb 2 21:11:53 EST 2003
Alexander Schmolck <a.schmolck at gmx.net> writes:
> Well, given that there simply *is* no reason to "miss that one-liner" you
> mention above -- as it would just provide an idiotic way to write:
>
> for line in file:... # doesn't need more RAM BTW
>
> -- what did you expect?
How would you write
while ((c = getc(file)) != EOF)
...
without missing the one-liner?
Thanks.
More information about the Python-list
mailing list