funcdict = {
'mypackage.mymodule.myfunction': mypackage.mymodule.myfunction,
....
}
funcdict[myvar](parameter1, parameter2)
More Related Contents:
- How to pass an argument to a function pointer parameter?
- Why can’t I call read() twice on an open file?
- Convert hex string to int in Python
- Converting a list to a set changes element order
- Activate a virtualenv with a Python script
- stack bar plot in matplotlib and add label to each section
- How to pull a random record using Django’s ORM?
- How to run Spyder in virtual environment?
- How do I perform HTML decoding/encoding using Python/Django?
- All synonyms for word in python? [duplicate]
- What does a semicolon do?
- Python spacing and aligning strings
- SQLAlchemy ManyToMany secondary table with additional fields
- How can I make silent exceptions louder in tkinter?
- How do I find an image contained within an image?
- Finding the nearest value and return the index of array in Python
- Python: use mysqldb to import a MySQL table as a dictionary?
- How to convert a list of numbers to jsonarray in Python
- Python list slice syntax used for no obvious reason
- Differences and uses between WSGI, CGI, FastCGI, and mod_python in regards to Python?
- What can lead to “IOError: [Errno 9] Bad file descriptor” during os.system()?
- Equivalent of copyTo in Python OpenCV bindings?
- Django Admin – Disable the ‘Add’ action for a specific model
- Fastest way to compute entropy in Python
- Returning tuple with a single item from a function
- Convert a python ‘type’ object to a string
- Why do I get “‘str’ object has no attribute ‘read'” when trying to use `json.load` on a string? [duplicate]
- How to replace an instance in __init__() with a different object?
- Splitting a math expression string into tokens in Python
- SWIG/python array inside structure