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

Fredrik Lundh fredrik@pythonware.com
Tue, 26 Feb 2002 21:22:59 +0100


oops.

two lines of code, and one bug.  should be:

>     if isinstance(v, basemoney):
>         # yay! it's money
>         print float(v) # let's hope it's not too much

</F>