Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_collections.WithSet Class Reference
Inheritance diagram for test.test_collections.WithSet:
Inheritance graph
[legend]
Collaboration diagram for test.test_collections.WithSet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __len__
def __iter__
def __contains__
def add
def discard

Public Attributes

 data

Detailed Description

Definition at line 543 of file test_collections.py.


Constructor & Destructor Documentation

def test.test_collections.WithSet.__init__ (   self,
  it = () 
)

Definition at line 545 of file test_collections.py.

00545 
00546     def __init__(self, it=()):
00547         self.data = set(it)

Here is the caller graph for this function:


Member Function Documentation

def test.test_collections.WithSet.__contains__ (   self,
  item 
)

Definition at line 554 of file test_collections.py.

00554 
00555     def __contains__(self, item):
00556         return item in self.data

Definition at line 551 of file test_collections.py.

00551 
00552     def __iter__(self):
00553         return iter(self.data)

Definition at line 548 of file test_collections.py.

00548 
00549     def __len__(self):
00550         return len(self.data)

def test.test_collections.WithSet.add (   self,
  item 
)

Definition at line 557 of file test_collections.py.

00557 
00558     def add(self, item):
00559         self.data.add(item)

Here is the caller graph for this function:

def test.test_collections.WithSet.discard (   self,
  item 
)

Definition at line 560 of file test_collections.py.

00560 
00561     def discard(self, item):
00562         self.data.discard(item)


Member Data Documentation

Definition at line 546 of file test_collections.py.


The documentation for this class was generated from the following file: