Shaare your links...
3224 links
L!NKS
Retour au blog
Login
RSS Feed
ATOM Feed
Tag cloud
Picture wall
Daily
Links per page:
20
50
100
page 1 / 1
Calling a function of a module from a string with the function's name in Python - Stack Overflow
import foo
methodToCall = getattr(foo, 'bar')
result = methodToCall()
ou : result = getattr(foo, 'bar')()
permalink
-
-
https://stackoverflow.com/questions/3061/calling-a-function-of-a-module-from-a-string-with-the-functions-name-in-python
python
Links per page:
20
50
100
page 1 / 1