MCPcopy Index your code
hub / github.com/PyTables/PyTables / del_node_attr

Method del_node_attr

tables/file.py:2040–2056  ·  view source on GitHub ↗

Delete a PyTables attribute from the given node. Parameters ---------- where, name These arguments work as in :meth:`File.get_node`, referencing the node to be acted upon. attrname The name of the attribute to delete. If the named

(
        self, where: Node | str, attrname: str, name: str | None = None
    )

Source from the content-addressed store, hash-verified

2038 obj._f_setattr(attrname, attrvalue)
2039
2040 def del_node_attr(
2041 self, where: Node | str, attrname: str, name: str | None = None
2042 ) -> None:
2043 """Delete a PyTables attribute from the given node.
2044
2045 Parameters
2046 ----------
2047 where, name
2048 These arguments work as in :meth:`File.get_node`, referencing the
2049 node to be acted upon.
2050 attrname
2051 The name of the attribute to delete. If the named
2052 attribute does not exist, an AttributeError is raised.
2053
2054 """
2055 obj = self.get_node(where, name=name)
2056 obj._f_delattr(attrname)
2057
2058 def copy_node_attrs(
2059 self, where: Node | str, dstnode: Node | str, name: str | None = None

Callers 2

check_nameMethod · 0.80

Calls 2

get_nodeMethod · 0.95
_f_delattrMethod · 0.80

Tested by 2

check_nameMethod · 0.64