[Python-Dev] decimal.py signals & traps

mcherm at mcherm.com mcherm at mcherm.com
Fri Jul 9 13:55:14 CEST 2004


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



More information about the Python-Dev mailing list