Is there a pattern...

Darrell news at dorb.com
Thu Aug 26 11:30:53 EDT 1999


Python doesn't support private anything. Although mxProxy may help in this
case. http://www.lemburg.com/python/

Another goofy approach might be:
Untested:

import new

def __unreg(self):
    """
    Do some unregistering here
    """

class Reg:
    def register1(self)
        """ could have returned a lambda also """
        return new.instancemethod(__unreg,self,Reg)

--Darrell







More information about the Python-list mailing list