added _weakref mixins

This commit is contained in:
David Halter
2012-09-04 16:21:17 +02:00
parent 778899af86
commit b111c56b06
2 changed files with 21 additions and 0 deletions

8
mixin/_weakref.py Normal file
View File

@@ -0,0 +1,8 @@
def proxy(object, callback=None):
return object
class ref():
def __init__(self, object, callback=None):
self.__object = object
def __call__(self):
return self.__object