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 rhettinger
Recipients gdr, rhettinger
Date 2011-01-31.20:02:15
SpamBayes Score 1.470285e-05
Marked as misclassified No
Message-id <1296504135.99.0.154486166039.issue11084@psf.upfronthosting.co.za>
In-reply-to
Content
-1 on an implicit, lossy conversion.

The principal reasons for using decimal in the first place is avoid representation error.  For example, when money is being represented as a decimal, it is improper to convert it to float (where it can no longer be compared for equality and where the representable range is smaller).

A user needs explicit control in this situation, converting to float when it doesn't matter, or using an API that allows the decimal repr to be handled.

One other issue is that in an RPC environment, good design suggests that the client do its best to match the type expectations for of the functions on the server.  Implicit signature changing makes even less sense for RPC than it does in a regular application.
History
Date User Action Args
2011-01-31 20:02:16rhettingersetrecipients: + rhettinger, gdr
2011-01-31 20:02:15rhettingersetmessageid: <1296504135.99.0.154486166039.issue11084@psf.upfronthosting.co.za>
2011-01-31 20:02:15rhettingerlinkissue11084 messages
2011-01-31 20:02:15rhettingercreate