[Python-Dev] Re: closure semantics
tjreedy at udel.edu
Thu Oct 23 00:03:29 EDT 2003
"David Eppstein" <eppstein at ics.uci.edu> wrote in message
news:eppstein-567571.16030622102003 at sea.gmane.org...
> If I implement it as a collection of methods of an object, I then
> to include a separate function which creates an instance of the
> and immediately destroys it. This seems clumsy and also doesn't fit
> with my intuition about what objects are for (representing
> structure). Also, again, modularity is violated -- outside code
> not be making instances of this object or accessing its methods.
So why not define the class inside the master function to keep it
For a complex algorithm, re-setup time should be relatively
Terry J. Reedy
More information about the Python-Dev