Back to index

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

List of all members.

Public Member Functions

def handle

Detailed Description

Invalid context.  Unknown rounding, for example.

This occurs and signals invalid-operation if an invalid context was
detected during an operation.  This can occur if contexts are not checked
on creation and either the precision exceeds the capability of the
underlying concrete representation or an unknown or unsupported rounding
was specified.  These aspects of the context need only be checked when
the values are required to be used.  The result is [0,qNaN].

Definition at line 283 of file

Member Function Documentation

def decimal.InvalidContext.handle (   self,

Reimplemented from decimal.InvalidOperation.

Definition at line 294 of file

00295     def handle(self, context, *args):
00296         return _NaN

Here is the caller graph for this function:

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