Skip to content

Instantly share code, notes, and snippets.

@aodag
Last active December 26, 2015 04:39
Show Gist options
  • Save aodag/7095341 to your computer and use it in GitHub Desktop.
Save aodag/7095341 to your computer and use it in GitHub Desktop.
# 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