Answers for "how to use a string to call a function python"

1

python call function from string

result = getattr(model_or_object, 'function')('arguments')
Posted by: Guest on June-10-2021

Code answers related to "how to use a string to call a function python"

Python Answers by Framework

Browse Popular Code Answers by Language