def get_invalid_variable_names():
"""
Get a list of invalid variable names for use in sfc_model equations.
Includes mathematical operators in module 'math'.
Cannot use 'k', as that is the discrete time axis step variable.
:return: list
"""
internal = ['self', 'None', 'k']
kw = keyword.kwlist
if is_python_3:
built = dir(builtins)
else: # pragma: no cover
built = dir(__builtin__)
out = internal + kw + built + dir(math)
return list(out)
评论列表
文章目录