"Dave Kuhlman" <[EMAIL PROTECTED]> wrote > Actually, the particular edition of Alan's book that I have is old > enough so that it does not discuss the Enclosing namespace, which > came later to Python. The enclosing namespace not make a > difference in your example, but does in mine.
The paper book is based on Python 1.5.1 The web page is based on Python 2.2 and mentions enclosing scope (although I call it "nested" and avoid discussing it in detail! :-) I intended adding sections in the functional programming and OOP topics but it doesn't look like I ever really got round to it! oops! :-( Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor