Home

James Stroud <jstroud@mbi.ucla.edu> writes:
> FunctionUser.do_something_with(globals(), 'doit', 7)

How about instead of "import FunctionUser", require

from FunctionUser import do_something

In FunctionUser.py, write:

frob = (some object that gets necessary stuff from module environment)

def do_something(*user_args, __frob = frob):
# use __frob to access FunctionUser module contents as needed
# ...
(func, args) = getattr(FunctionUser, user_args[0]), user_args[1:]
func(*args)

previous
next

Re: I cannot use the hash_map::operator[] to read the value in the hash map?
Re: Iterator to last element in list?
Re: Yet another comparison of Python Web Frameworks
Re: C++ Primer ex 7.6
Re: How to unload a module after I've imported it.
stylizacja paznokci Lublin
bižutérie
forum
tanie meble katowice
bjbeierde.com