[Python-Dev] proposal: add basic money type to the standard library

Guido van Rossum guido@python.org
Tue, 26 Feb 2002 16:40:42 -0500


> Indeed, monetary types solve different problems than decimal 
> types. Financial applications do have a need for these kind
> of implicit error checks.

But this is easily done by creating a custom class -- which has the
advantage that the set of constraints can be specialized to the needs
of a specific application.  When we add a monetary type to the
language we'll never get it right for all apps.  OTOH, I think we
could get a fixed point type right.

How many other languages have a monetary type?

What support for money does SQL have?

--Guido van Rossum (home page: http://www.python.org/~guido/)