Nested scopes question
Fernando Perez
fperez528 at yahoo.com
Fri Jul 19 00:26:40 EDT 2002
More information about the Python-list mailing list
Fri Jul 19 00:26:40 EDT 2002
- Previous message (by thread): Nested scopes question
- Next message (by thread): Nested scopes question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Mark McEahern wrote: > > You might want to read this thread: > > http://groups.google.com/groups?selm=3B98F3B0.53AC2524%40swiftview.com > > As Frederik Lundh points out: > > > http://groups.google.com/groups?selm=Eo7m7.53652%24e5.2684084%40newsb.telia. > net > > once you bind x in bar(), it is considered local. End of story. > > If I remember correctly, this is the example Paul Graham used to make fun of > Python as not yet quite having evolved into Lisp. ;-) > Thanks a lot for the references. So I guess my uglyish hack of hiding the value inside a list is after all the solution for this problem. Well, at least it gets the job done :) Regards, f.
- Previous message (by thread): Nested scopes question
- Next message (by thread): Nested scopes question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list