[Python-Dev] Possible resolution of generatorexpressionvariablecapture dilemma (original) (raw)

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Mar 25 18:42:52 EST 2004


jiwon <jiwon at softwise.co.kr>:

Furthermore, I think closures should capture variables, too, but it seems that's too much change for now :)

That's not an option, because it would break mutually recursive functions.

With regard to generator expressions, isn't Guido leaning back towards not having any variable capture? Or is he un-leaning-back again? This is all getting very confusing...

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+



More information about the Python-Dev mailing list