Skip to main content

is_py_get_attr

No overview available.

def is_py_get_attr(
attr_name: string
) - > boolean

Determines if a given attribute name corresponds to the Python getattribute or getattr magic methods.

Parameters

NameTypeDescription
attr_namestringThe name of the attribute or method to check against Python magic method naming conventions

Returns

TypeDescription
booleanTrue if the attribute name is a Python attribute access magic method, False otherwise