Oct-18-2018, 05:29 AM
(This post was last modified: Oct-18-2018, 05:29 AM by Gribouillis.)
You could simply use the common module
def en(): import common common.foo = 'faen'You can also play with
>>> class Share: ... def __init__(self): ... self.__dict__ = globals() ... >>> share = Share() >>> share.foo = 'bar' >>> foo 'bar'Remember that "Simple is better than complex" (the Zen of Python)