Range Operation pre-PEP

Greg Ewing see at my.signature
Tue May 15 00:00:50 EDT 2001


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.

Pretty soon our one-liners will be even shorter
than Perl's!

Next-stop-APL-ly,

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list