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 mark.dickinson
Recipients facundobatista, jyasskin, mark.dickinson
Date 2008-05-03.19:10:50
SpamBayes Score 0.04241946
Marked as misclassified No
Message-id <1209841852.4.0.852706642988.issue2748@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 3.0, the Decimal __round__, __ceil__ and __floor__ functions
don't work as intended:  they all return 1, 0, or -1.

This is easy to fix.  The only reason I'm making an issue (literally) of 
it is that I remember some discussion of whether these functions should
be implemented at all for Decimal, but I don't remember what the outcome 
of that discussion was.  Adding Jeffrey to the nosy list in case he 
remembers.

Either all three functions should be removed, or they should be 
corrected and tests should be added for them.
History
Date User Action Args
2008-05-03 19:10:52mark.dickinsonsetspambayes_score: 0.0424195 -> 0.04241946
recipients: + mark.dickinson, facundobatista, jyasskin
2008-05-03 19:10:52mark.dickinsonsetspambayes_score: 0.0424195 -> 0.0424195
messageid: <1209841852.4.0.852706642988.issue2748@psf.upfronthosting.co.za>
2008-05-03 19:10:51mark.dickinsonlinkissue2748 messages
2008-05-03 19:10:51mark.dickinsoncreate