unmap_attr

unmap an attribute name

Unmaps an attribute name from the other attribute name. Nothing is returned.

Any attribute name that is currently mapped to another attribute name (See map_attr) can be unmapped using this method. Attribute names must already exist to unmap them.

This will release the mapping between a child attribute name and the corresponding parent attribute name. In addition, If a parent attribute name is specified, that contains children with references to it, all child mappings will be detached from that parent

Basic Example of unmapping a name using default positional parameter

data.unmap_attr('attr_name')

In this example, we simply unmap an attribute name that already exists in the MaciDataObj and is also currently present in the reference maps by passing a string of the attribute name as an argument to the unmap_attr method to unmap the name.

partner methods

Methods that provide related utility to this method

map_attr -> Map an attribute name get_all_maps -> Get all parent and child maps get_parent_maps -> Get all parent maps get_child_maps -> Get all child maps get_parent_map_chains -> Get parent maps represented as a chain is_parent_map -> Check if attribute name is a parent mapped with children is_child_map -> Check if attribute name is a child mapped to a parent

parameters & arguments

Describes all parameter functionality and accepted data types

attr_name: str

First and only required positional argument. Accepts strings

Use this parameter to pick the attribute name to release its map reference(s).

Last updated