Class p.c.p.StrictNamedSets(NamedSets):

Part of pida.core.plugins View In Hierarchy

A strict named sets is a NamedSets that has fixed predefined sets.

In order to access a set, for adding or removing elements, you must initialize it first. Trying to perform an operation on a undefined named set will result in a KeyError.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
177 Method __init__ Creates a strict named sets by providing an optional number of keys
188 Class Method __getitem__ Returns the named set.
192 Class Method add Add one one value to the named set.
196 Class Method remove Remove the value from the set named name.

Inherited from NamedSets:

Line # Kind Name Docs
137 Method keys Return a collection of the names of the existing sets.
145 Method __delitem__ Remove the named set.
154 Class Method __repr__ Undocumented
160 Class Method __len__ Undocumented
164 Class Method __iter__ Undocumented
Line # Kind Name Docs
145 Method __delitem__ Remove the named set.
188 Class Method __getitem__ Returns the named set.
177 Method __init__ Creates a strict named sets by providing an optional number of keys
164 Class Method __iter__ Undocumented
160 Class Method __len__ Undocumented
154 Class Method __repr__ Undocumented
192 Class Method add Add one one value to the named set.
137 Method keys Return a collection of the names of the existing sets.
196 Class Method remove Remove the value from the set named name.
def __init__(self, names=()):
Creates a strict named sets by providing an optional number of keys to define.

@param names: the sets to initialize.

@classmethod
def __getitem__(self, name):
Returns the named set.

@param name: the name of the set @return: an iterator to the named set.

@classmethod
def add(self, key, value):
Add one one value to the named set.

@param name: the name of the set @param value: the value to be added to the set

@classmethod
def remove(self, key, value):
Remove the value from the set named name.

@param name: the name of the set to remove the value from @param value: the value to remove from the named set

API Documentation for PIDA, generated by pydoctor.