This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author facundobatista
Recipients christian.heimes, facundobatista, mark.dickinson, poelzi
Date 2008-01-07.12:21:21
SpamBayes Score 0.0010197593
Marked as misclassified No
Message-id <1199708483.82.0.536661701567.issue1562@psf.upfronthosting.co.za>
In-reply-to
Content
Mark is right, the current behaviour is correct. See Tim post for a
longer explanation.

As general help, for the money class take a look of this:
http://sourceforge.net/projects/pymoney

There you'll see that the approach was to store the value, not subclass
Decimal, as the other currency info makes math ugly. For example:
  
  Money("15.30", currency="USD") + Money("2.33", currency="ARS")

There's a lot of discussion for a Money data type, also, in python-list
and python-dev (I even proposed a pre-PEP), but then Decimal was
implemented; check those lists at the fourth quarter of 2003 for these
posts.

Regards,
History
Date User Action Args
2008-01-07 12:21:24facundobatistasetspambayes_score: 0.00101976 -> 0.0010197593
recipients: + facundobatista, mark.dickinson, christian.heimes, poelzi
2008-01-07 12:21:23facundobatistasetspambayes_score: 0.00101976 -> 0.00101976
messageid: <1199708483.82.0.536661701567.issue1562@psf.upfronthosting.co.za>
2008-01-07 12:21:21facundobatistalinkissue1562 messages
2008-01-07 12:21:21facundobatistacreate