Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_richcmp.Number Class Reference

List of all members.

Public Member Functions

def __init__
def __lt__
def __le__
def __eq__
def __ne__
def __gt__
def __ge__
def __cmp__
def __repr__

Public Attributes

 x

Detailed Description

Definition at line 8 of file test_richcmp.py.


Constructor & Destructor Documentation

def test.test_richcmp.Number.__init__ (   self,
  x 
)

Definition at line 10 of file test_richcmp.py.

00010 
00011     def __init__(self, x):
00012         self.x = x

Here is the caller graph for this function:


Member Function Documentation

def test.test_richcmp.Number.__cmp__ (   self,
  other 
)

Definition at line 31 of file test_richcmp.py.

00031 
00032     def __cmp__(self, other):
00033         raise support.TestFailed("Number.__cmp__() should not be called")

def test.test_richcmp.Number.__eq__ (   self,
  other 
)

Definition at line 19 of file test_richcmp.py.

00019 
00020     def __eq__(self, other):
00021         return self.x == other

def test.test_richcmp.Number.__ge__ (   self,
  other 
)

Definition at line 28 of file test_richcmp.py.

00028 
00029     def __ge__(self, other):
00030         return self.x >= other

def test.test_richcmp.Number.__gt__ (   self,
  other 
)

Definition at line 25 of file test_richcmp.py.

00025 
00026     def __gt__(self, other):
00027         return self.x > other

def test.test_richcmp.Number.__le__ (   self,
  other 
)

Definition at line 16 of file test_richcmp.py.

00016 
00017     def __le__(self, other):
00018         return self.x <= other

def test.test_richcmp.Number.__lt__ (   self,
  other 
)

Definition at line 13 of file test_richcmp.py.

00013 
00014     def __lt__(self, other):
00015         return self.x < other

def test.test_richcmp.Number.__ne__ (   self,
  other 
)

Definition at line 22 of file test_richcmp.py.

00022 
00023     def __ne__(self, other):
00024         return self.x != other

Definition at line 34 of file test_richcmp.py.

00034 
00035     def __repr__(self):
00036         return "Number(%r)" % (self.x, )


Member Data Documentation

Definition at line 11 of file test_richcmp.py.


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