Is there a pattern...

Darrell news at
Thu Aug 26 17:30:53 CEST 1999

Python doesn't support private anything. Although mxProxy may help in this

Another goofy approach might be:

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)


More information about the Python-list mailing list