]> granicus.if.org Git - python/commitdiff
Issue #22284: Update decimal.__all__
authorStefan Krah <skrah@bytereef.org>
Tue, 9 Sep 2014 17:56:56 +0000 (19:56 +0200)
committerStefan Krah <skrah@bytereef.org>
Tue, 9 Sep 2014 17:56:56 +0000 (19:56 +0200)
Lib/decimal.py

index 5544f4e34adff1dd19b16b569f3d0c4919159327..b254f9cd86cf74ed72e2735dafc1c5cf1c0e68a1 100644 (file)
@@ -116,6 +116,9 @@ __all__ = [
     # Two major classes
     'Decimal', 'Context',
 
+    # Named tuple representation
+    'DecimalTuple',
+
     # Contexts
     'DefaultContext', 'BasicContext', 'ExtendedContext',
 
@@ -124,6 +127,9 @@ __all__ = [
     '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',