to_python_identifier

to_python_identifier(name)[source]

Convert a name to a valid Python identifier.

Parameters

name (str) – Name to be converted.

Return type

str

Returns

Name that is a valid Python identifier.