[Python-checkins] cpython (3.4): Issue #22284: Update decimal.__all__

stefan.krah python-checkins at python.org
Tue Sep 9 19:59:10 CEST 2014


http://hg.python.org/cpython/rev/2b3dbbd2bd92
changeset: 92380:2b3dbbd2bd92
branch: 3.4
parent: 92375:7fece97e605d
user: Stefan Krah <skrah at bytereef.org>
date: Tue Sep 09 19:56:56 2014 +0200
summary:
 Issue #22284: Update decimal.__all__
files:
 Lib/decimal.py | 6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Lib/decimal.py b/Lib/decimal.py
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -116,6 +116,9 @@
 # Two major classes
 'Decimal', 'Context',
 
+ # Named tuple representation
+ 'DecimalTuple',
+
 # Contexts
 'DefaultContext', 'BasicContext', 'ExtendedContext',
 
@@ -124,6 +127,9 @@
 'Inexact', 'Rounded', 'Subnormal', 'Overflow', 'Underflow',
 'FloatOperation',
 
+ # Exceptional conditions that trigger InvalidOperation
+ 'DivisionImpossible', 'InvalidContext', 'ConversionSyntax', 'DivisionUndefined',
+
 # Constants for use in setting up contexts
 'ROUND_DOWN', 'ROUND_HALF_UP', 'ROUND_HALF_EVEN', 'ROUND_CEILING',
 'ROUND_FLOOR', 'ROUND_UP', 'ROUND_HALF_DOWN', 'ROUND_05UP',
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /