Range Operation pre-PEP
Magnus Lie Hetland
mlh at idi.ntnu.no
Tue May 15 17:08:36 EDT 2001
"Carel Fellinger" <cfelling at iae.nl> wrote in message
news:9ds4fp$bq0$1 at animus.fel.iae.nl...
> Greg Ewing <see at my.signature> wrote:
> > Tim Peters wrote:
> >> For an extreme example, max(sys.stdin)
> > Ha! I like it! I can just imagine a professor setting
> > an assignment which says "Read characters from standard
> > input up to EOF and return the one with the highest
> > ASCII value" and some smart-alec student hands in
> > a one-line Python solution.
> only it isn't maxing chars, it's maxing lines.
Is sys.stdin going to be a line iterator? Why?
> groetjes, carel
Magnus Lie Hetland http://www.hetland.org
"Reality is that which, when you stop believing in
it, doesn't go away." -- Philip K. Dick
More information about the Python-list