Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Private Attributes
decimal._WorkRep Class Reference
Inheritance diagram for decimal._WorkRep:
Inheritance graph
[legend]
Collaboration diagram for decimal._WorkRep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __repr__

Public Attributes

 sign
 int
 exp
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Private Attributes

tuple __slots__ = ('sign','int','exp')
 __str__ = __repr__

Detailed Description

Definition at line 5472 of file decimal.py.


Constructor & Destructor Documentation

def decimal._WorkRep.__init__ (   self,
  value = None 
)

Definition at line 5478 of file decimal.py.

05478 
05479     def __init__(self, value=None):
05480         if value is None:
05481             self.sign = None
05482             self.int = 0
05483             self.exp = None
05484         elif isinstance(value, Decimal):
05485             self.sign = value._sign
05486             self.int = int(value._int)
05487             self.exp = value._exp
05488         else:
05489             # assert isinstance(value, tuple)
05490             self.sign = value[0]
05491             self.int = value[1]
05492             self.exp = value[2]

Here is the caller graph for this function:


Member Function Documentation

def decimal._WorkRep.__repr__ (   self)

Definition at line 5493 of file decimal.py.

05493 
05494     def __repr__(self):
05495         return "(%r, %r, %r)" % (self.sign, self.int, self.exp)


Member Data Documentation

tuple decimal._WorkRep.__slots__ = ('sign','int','exp') [static, private]

Definition at line 5473 of file decimal.py.

decimal._WorkRep.__str__ = __repr__ [static, private]

Definition at line 5496 of file decimal.py.

Definition at line 5482 of file decimal.py.

Definition at line 5481 of file decimal.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 5480 of file decimal.py.


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