Last active
December 26, 2015 04:39
-
-
Save aodag/7095341 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In mymodule.py | |
from zope.proxy import ProxyBase, setProxiedObject | |
hoge = ProxyBase(None) | |
def setup_hoge(): | |
setProxiedObject(hoge, 'hoge') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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