Why read-only nested scopes?

Martin v. Loewis martin at v.loewis.de
Wed Sep 4 17:39:03 EDT 2002


bokr at oz.net (Bengt Richter) writes:

> OTOH, if "everything is an object," then the namespace of
> an enclosing scope could also be an object, and as such
> could support rebinding of names therein ;-)

It is an object - the frame object. There is just no easy way to refer
to that object.

Regards,
Martin



More information about the Python-list mailing list