View Source on Github
Attributes
full_name
Returns the full name of the object, including the namespace path.
name
Retrieves the base name of the object without namespace prefixes.
Methods
get_name
Returns the name node of the object.View Source on Github
Returns
The name node of the object. Can be a Name node for simple names, a ChainedAttribute for names with namespaces (e.g., a.b), or None if the object has no name.
rename
Sets the name of an object and updates all its usages.View Source on Github
Parameters
name
required
Returns
set_name
Sets the name of a code element.View Source on Github
Parameters
name
required