"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 ;-).