Module decimal :: Class DivisionByZero
[hide private]
[frames] | no frames]

type DivisionByZero

              object --+                    
                       |                    
exceptions.BaseException --+                
                           |                
        exceptions.Exception --+            
                               |            
        exceptions.StandardError --+        
                                   |        
          exceptions.ArithmeticError --+    
                                       |    
                        DecimalException --+
                                           |
              object --+                   |
                       |                   |
exceptions.BaseException --+               |
                           |               |
        exceptions.Exception --+           |
                               |           |
        exceptions.StandardError --+       |
                                   |       |
          exceptions.ArithmeticError --+   |
                                       |   |
            exceptions.ZeroDivisionError --+
                                           |
                                          DivisionByZero

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.

Instance Methods [hide private]
 
handle(self, context, sign, double=None, *args)

Inherited from exceptions.ZeroDivisionError: __init__, __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Method Details [hide private]

handle(self, context, sign, double=None, *args)

 
Overrides: DecimalException.handle