Well, in my defense, I did ask a pretty narrow question, "Is id guaranteed to be in scope in the print statement?". While I will admit that not knowing whether I could alter the exception, or whether id masked a builtin or not does complexify answering some questions, those are questions I didn't ask :-) -- http://mail.python.org/mailman/listinfo/python-list
- Scope of variable inside list comprehensions? Roy Smith
- Re: Scope of variable inside list comprehension... Jussi Piitulainen
- Re: Scope of variable inside list comprehension... Chris Kaynor
- Re: Scope of variable inside list comprehension... Peter Otten
- Re: Scope of variable inside list comprehension... Jean-Michel Pichavant
- Re: Scope of variable inside list comprehension... Roy Smith
- Re: Scope of variable inside list comprehen... Terry Reedy
- Re: Scope of variable inside list comprehen... Roy Smith
- Re: Scope of variable inside list compr... Terry Reedy
- Re: Scope of variable inside list comprehension... Steven D'Aprano
- Re: Scope of variable inside list comprehen... Roy Smith
- Re: Scope of variable inside list compr... Chris Angelico
- Re: Scope of variable inside list comprehen... Jean-Michel Pichavant
- Re: Scope of variable inside list comprehension... Rainer Grimm
- Re: Scope of variable inside list comprehen... 88888 Dihedral