Phillip J. Eby wrote: > This looks like a bug to me. A list comprehension's local scope > should be the locals of the enclosing code, even if its loop indexes > aren't exposed to that scope.
It sounds like list comprehensions are being implemented using genexps behind the scenes now. Is this wise? In a recent thread, I suggested that one of the reasons for keeping the LC syntax was that it could be faster than list(genexp). Has anyone investigated whether any speed is being lost by making them equivalent? -- Greg _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
