Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_mutants.Machiavelli3 Class Reference

List of all members.

Public Member Functions

def __init__
def __eq__
def __repr__
def __hash__

Public Attributes

 id

Detailed Description

Definition at line 260 of file test_mutants.py.


Constructor & Destructor Documentation

def test.test_mutants.Machiavelli3.__init__ (   self,
  id 
)

Definition at line 261 of file test_mutants.py.

00261 
00262     def __init__(self, id):
00263         self.id = id

Here is the caller graph for this function:


Member Function Documentation

def test.test_mutants.Machiavelli3.__eq__ (   self,
  other 
)

Definition at line 264 of file test_mutants.py.

00264 
00265     def __eq__(self, other):
00266         if self.id == other.id:
00267             dict.clear()
00268             return 1
00269         else:
00270             return 0

Definition at line 274 of file test_mutants.py.

00274 
00275     def __hash__(self):
00276         return 0
00277 
00278 dict[Machiavelli3(1)] = Machiavelli3(0)
00279 dict[Machiavelli3(2)] = Machiavelli3(0)

Definition at line 271 of file test_mutants.py.

00271 
00272     def __repr__(self):
00273         return "%s(%s)"%(self.__class__.__name__, self.id)


Member Data Documentation

Definition at line 262 of file test_mutants.py.


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