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

Paul Rubin http
Sat Aug 6 23:22:34 EDT 2005


"Terry Reedy" <tjreedy at udel.edu> 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