]> granicus.if.org Git - python/commitdiff
* Update the todo list.
authorRaymond Hettinger <python@rcn.com>
Mon, 5 Jul 2004 18:48:22 +0000 (18:48 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 5 Jul 2004 18:48:22 +0000 (18:48 +0000)
* Make ConversionSyntax signals get trapped by default.

Lib/decimal.py

index d5f6795407b2755792e49ae386364fd5dda6ef6b..500ba07a101489569e3d41fbdac26c0ac7bb98ca 100644 (file)
@@ -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