From ca3cc2fe2191367e1f939ab825804bfc72b34cd6 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 5 Jul 2004 18:48:22 +0000 Subject: * Update the todo list. * Make ConversionSyntax signals get trapped by default. --- Lib/decimal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v0.12