Attempt to coerce value to requested datatype.
>>> coerce_value("int", "5") 5
If coercion is not possible, the incoercible portion is left changed.
>>> coerce_value(['int'], ['1', '2', 'c']) [1, 2, 'c']
Full-text doc search.
Validation
Enter search terms or a module, class or function name.