Re: list comprehensions put non-names into namespaces!

2006-05-26 Thread Just
In article <[EMAIL PROTECTED]>, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Mel Wilson" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Point of information, would this be the interpreter putting > > the result of its last calculation in _ ? > > Yes, [ ... ] No, actually. It'

Re: list comprehensions put non-names into namespaces!

2006-05-26 Thread Terry Reedy
"Mel Wilson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Point of information, would this be the interpreter putting > the result of its last calculation in _ ? Yes, in interactive mode (but not in batch mode) it binds the valid name '_' to the result of statement expressions.

Re: list comprehensions put non-names into namespaces!

2006-05-26 Thread Mel Wilson
[EMAIL PROTECTED] wrote: > Lonnie> List comprehensions appear to store their temporary result in a > Lonnie> variable named "_[1]" (or presumably "_[2]", "_[3]" etc for > Lonnie> nested comprehensions) > > Known issue. Fixed in generator comprehensions. Dunno about plans to fix > it

Re: list comprehensions put non-names into namespaces!

2006-05-26 Thread Diez B. Roggisch
Ben Cartwright schrieb: > [EMAIL PROTECTED] wrote: >> Lonnie> List comprehensions appear to store their temporary result in a >> Lonnie> variable named "_[1]" (or presumably "_[2]", "_[3]" etc for >> Lonnie> nested comprehensions) >> >> Known issue. Fixed in generator comprehensions. Dunn

Re: list comprehensions put non-names into namespaces!

2006-05-25 Thread Ben Cartwright
[EMAIL PROTECTED] wrote: > Lonnie> List comprehensions appear to store their temporary result in a > Lonnie> variable named "_[1]" (or presumably "_[2]", "_[3]" etc for > Lonnie> nested comprehensions) > > Known issue. Fixed in generator comprehensions. Dunno about plans to fix > it in li

Re: list comprehensions put non-names into namespaces!

2006-05-25 Thread skip
Lonnie> List comprehensions appear to store their temporary result in a Lonnie> variable named "_[1]" (or presumably "_[2]", "_[3]" etc for Lonnie> nested comprehensions) Known issue. Fixed in generator comprehensions. Dunno about plans to fix it in list comprehensions. I believe a