Object representing a list of attributes.
Warning
This class should not be used directly, but only via its subclasses, gAttrList and zAttrList. Methods listed here are safe to use from the subclasses.
clone(master[, name, new_name]) | Clones another attribute list, or one attribute from it, into this list. |
copy() | Create a copy of this attribute list |
from_dict(in_dict) | Fill this list of attributes from a dictionary |
new(name[, data, type]) | Create a new Attr in this AttrList |
rename(old_name, new_name) | Rename an attribute in this list |
Clones another attribute list, or one attribute from it, into this list.
Parameters: | master : AttrList
|
---|---|
Other Parameters: | |
name : str (optional)
new_name : str (optional)
|
Create a copy of this attribute list
Returns: | out : dict
|
---|
Fill this list of attributes from a dictionary
Deprecated since version 0.1.5: Use clone() instead; it supports cloning from dictionaries.
Parameters: | in_dict : dict
|
---|
Create a new Attr in this AttrList
Parameters: | name : str
|
---|---|
Other Parameters: | |
data :
type :
|
|
Raises: | KeyError : if the name already exists in this list |