Skip to content

Instantly share code, notes, and snippets.

@aodag
Last active Dec 26, 2015
Embed
What would you like to do?
# In mymodule.py
from zope.proxy import ProxyBase, setProxiedObject
hoge = ProxyBase(None)
def setup_hoge():
setProxiedObject(hoge, 'hoge')
from mymodule import hoge
from mymodule import setup_hoge
setup_hoge()
print(hoge)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment