2005, Feb 25 -> Scott David Daniels wrote : > Attila Szabo wrote: > >Hi, > >def main(): > > lambda x: 'ABC%s' % str(x) > > for k in range(2): exec('print %s' % k) > OK, to no real effect, in main you define an unnamed function that > you can never reference. Pretty silly, but I'll bite.
This code was simplified, the lambda was part of a map, and the exec line is different too, I just wrote this to picture the situation, but it's ok now... At first I was surprised, but I read a bit and it's clear now... Thanks -- A t t i l a :: [EMAIL PROTECTED] :: S z a b o -- http://mail.python.org/mailman/listinfo/python-list