DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python get function from string name
module = __import__('foo') func = getattr(module, 'bar') func()
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#function
#string
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit