[Python-Dev] decimal.py signals & traps (original) (raw)
mcherm at mcherm.com mcherm at mcherm.com
Fri Jul 9 13:55:14 CEST 2004
- Previous message: [Python-Dev] collecting 2.4 highlights
- Next message: [Python-Dev] Possible problem with recent weakref or bsddb changes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Raymond writes:
I would like change the Context constructor API to [...] (list only the flags and traps that you want set).
+1
The dictionaries themselves would be made private (allowing them to be recast as sets if desired).
+1
David writes:
The point of this discussion and the patch is that according to the spec and PEP 327, there is no "conversion syntax" signal. "Conversion syntax" is an exceptional condition, which triggers the "invalid-operation" signal. Same for "division impossible", "division undefined", and "invalid context"; all of these are conditions tied to the "invalid-operation" signal. Making ConversionSyntax etc. into signals would be extending the spec.
+1
No name changes are necessary IMO.
+2
-- Michael Chermside
- Previous message: [Python-Dev] collecting 2.4 highlights
- Next message: [Python-Dev] Possible problem with recent weakref or bsddb changes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]