List comprehension - NameError: name '_[1]' is not defined ?
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Thu Jan 15 17:44:14 EST 2009
On Thu, 15 Jan 2009 07:56:02 -0800, mario ruggier wrote:
> On Jan 15, 4:06 pm, Steven D'Aprano <st... at REMOVE-THIS-
> cybersource.com.au> wrote:
>
> Hi Steve!
>
>> > class GetItemEvaluator(object):
>> > def __init__(self):
>> > self.globals = globals() # some dict (never changes)
>
> Ya, this is just a boiled down sample, and for simplicity I set to to
> the real globals(),
You should make that more clear when posting, in the code snippet as well
as the descriptive text.
And if you *did* make it clear, then *I* should read your post more
carefully.
Regards,
--
Steven
More information about the Python-list
mailing list