diff options
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index a8fde82..99c0de6 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -85,7 +85,7 @@ Traceback (most recent call last): ... ... ... -DivisionByZero: x / 0 +decimal.DivisionByZero: x / 0 >>> c = Context() >>> c.traps[InvalidOperation] = 0 >>> print c.flags[InvalidOperation] @@ -103,7 +103,7 @@ Traceback (most recent call last): ... ... ... -InvalidOperation: 0 / 0 +decimal.InvalidOperation: 0 / 0 >>> print c.flags[InvalidOperation] 1 >>> c.flags[InvalidOperation] = 0 |