[Tutor] List comprehensions

Bob Gailer bgailer at alum.rpi.edu
Thu Jan 13 19:40:39 CET 2005


At 07:03 AM 1/13/2005, Blake Winton wrote:
  What about "x === item"

Perhaps we should propose an extension to Python:

Assignment Statement: name = [[name] = ] ... expression-list. The absence 
of a name would create an anonymous variable just as lambda creates 
anonymous functions.

Reminds me of a proposal a long time ago for a COME FROM statement in FORTRAN.

Bob Gailer
mailto:bgailer at alum.rpi.edu
303 442 2625 home
720 938 2625 cell 



More information about the Tutor mailing list