summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-07-05 18:48:22 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-07-05 18:48:22 (GMT)
commitca3cc2fe2191367e1f939ab825804bfc72b34cd6 (patch)
tree77c348923d7329fd44b902bd1c6cc5741c8496da
parentd84efb3d93ded85209e8ca9ede0ba9edca33fc07 (diff)
downloadcpython-ca3cc2fe2191367e1f939ab825804bfc72b34cd6.zip
cpython-ca3cc2fe2191367e1f939ab825804bfc72b34cd6.tar.gz
cpython-ca3cc2fe2191367e1f939ab825804bfc72b34cd6.tar.bz2
* Update the todo list.
* Make ConversionSyntax signals get trapped by default.
-rw-r--r--Lib/decimal.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py
index d5f6795..500ba07 100644
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -9,7 +9,7 @@
# Todo:
-# Provide a clean way of attaching monetary format representations
+# Add rich comparisons for equality testing with other types
"""
@@ -2969,6 +2969,7 @@ DefaultContext = Context(
Emin=DEFAULT_MIN_EXPONENT,
capitals=1
)
+DefaultContext.trap_enablers.update({ConversionSyntax : 1})
# Pre-made alternate contexts offered by the specification
# Don't change these; the user should be able to select these