Replacement for keyword 'global' good idea? (e.g. 'modulescope'or 'module' better?)

Paul Rubin http
Sun Aug 7 05:22:34 CEST 2005

"Terry Reedy" <tjreedy at> writes:
> Actually, it is the reinvention of classes:
> class enclosing(object):
>     def __init__(self):
>         self.var = 2
>     def enclosed(self):
>         self.var = 4

Actually, having to wrap classes around operation as simple as variable
binding is a reinvention of Java ;-).

More information about the Python-list mailing list