[Python-Dev] Scoping [Patience, please]

2007-01-31 Thread lingwitt
uot; >>> a.b = new_b() >>>a() tee hee 3 >>> print x 5 or perhaps: >>> # Interestingly, the following code is valid already ... >>> def Person(name, age, location): ... def print_record(): ... print('The last person created had the nam

Re: [Python-Dev] Scoping [Patience, please]

2007-01-31 Thread lingwitt
[EMAIL PROTECTED] wrote: > Tangent (Utter Tomfoolery) > > More interestingly, one sees (if one squints) the distinction > between modules, > classes, and functions blur: > > >>> def new_b(): > ... print "tee hee" > >>> a.b = new_b() > >>>a() > tee hee > 3 > >>> print x > 5 > After