Range Operation pre-PEP
Carel Fellinger
cfelling at iae.nl
Tue May 15 16:44:41 EDT 2001
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.
--
groetjes, carel
More information about the Python-list
mailing list