Range Operation pre-PEP

Greg Ewing see at my.signature
Thu May 10 00:11:38 EDT 2001


Douglas Alan wrote:
> 
> Speaking of creeping-featurism, how come we have list comprehension,
> but not tuple comprehension?

Who says we don't?

  tuple([2*i for i in [1,2,3]])

:-)

-- 
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