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 yselivanov
Recipients skrah, yselivanov
Date 2012-11-06.23:04:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352243072.7.0.172202427654.issue16422@psf.upfronthosting.co.za>
In-reply-to
Content
Right now decimal.py defines 'ROUND_DOWN' as 'ROUND_DOWN' (string), whereas C version define it as 1 (integer).

While using constant values directly in your code is not a good idea, there is another case where it doesn't work: if you serialize decimal values along with their meta information, such as rounding settings.  In this case, when you unserialize data that was serialized with python decimal, those meta-settings won't work for 'c' decimal.
History
Date User Action Args
2012-11-06 23:04:32yselivanovsetrecipients: + yselivanov, skrah
2012-11-06 23:04:32yselivanovsetmessageid: <1352243072.7.0.172202427654.issue16422@psf.upfronthosting.co.za>
2012-11-06 23:04:32yselivanovlinkissue16422 messages
2012-11-06 23:04:30yselivanovcreate