Back to index

python3.2  3.2.2
Public Member Functions
decimal.DivisionByZero Class Reference
Inheritance diagram for decimal.DivisionByZero:
Inheritance graph
Collaboration diagram for decimal.DivisionByZero:
Collaboration graph

List of all members.

Public Member Functions

def handle
def handle

Detailed Description

Division by 0.

This occurs and signals division-by-zero if division of a finite number
by zero was attempted (during a divide-integer or divide operation, or a
power operation with negative right-hand operand), and the dividend was
not zero.

The result of the operation is [sign,inf], where sign is the exclusive
or of the signs of the operands for divide, or is 1 for an odd power of
-0, for power.

Definition at line 233 of file

Member Function Documentation

def decimal.DecimalException.handle (   self,
) [inherited]

Reimplemented in decimal.InvalidContext, decimal.DivisionUndefined, decimal.DivisionImpossible, decimal.ConversionSyntax, and decimal.InvalidOperation.

Definition at line 178 of file

00179     def handle(self, context, *args):
00180         pass

Here is the caller graph for this function:

def decimal.DivisionByZero.handle (   self,

Definition at line 246 of file

00247     def handle(self, context, sign, *args):
00248         return _SignedInfinity[sign]

Here is the caller graph for this function:

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