D
dmitrey
I can't find these via web serch
thank you in advance,
Dmitrey
thank you in advance,
Dmitrey
dmitrey said:I can't find these via web serch
thank you in advance,
Dmitrey
dmitrey said:I can't find these via web serch
dmitrey said:Thank you
(however in MATLAB ischar is the same as isstr)
but what if I don't know the name of module?
I.e. I have
def myfunc(param): ...
#where param can be both funcName or a function, and I want to obtain
both name and func, something like
if isinstance(param, basestring):
func, funcName = <something>, param
else: func, funcName = param, param.__name__
what should I type instead of <something>?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.