Fredrik Lundh wrote:
I propose adding an "abstract" money base type to the standard library, to be subclassed by real money/decimal implementations.
if isinstance(v, basemoney): # yay! it's money print float(money) # let's hope it's not too much
-1 on any proposal for a built-in money type that gets anywhere near
--- Aahz (@pobox.com)
Hugs and backrubs -- I break Rule 6 <*> http://www.rahul.net/aahz/ Androgynous poly kinky vanilla queer het Pythonista
We must not let the evil of a few trample the freedoms of the many.