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 ArneBab
Recipients ArneBab, mark.dickinson, r.david.murray, skrah
Date 2011-09-29.15:57:03
SpamBayes Score 0.00024363832
Marked as misclassified No
Message-id <1317311824.47.0.814324482098.issue13060@psf.upfronthosting.co.za>
In-reply-to
Content
I did not know about rounding to even, so maybe there should be a warning in the 2.7 documentation, that the behavior changed in python 3 (I just checked that: python2.7 is in line with the documentation). 

The first time I stumbled over these issues was when implementing a game, where I wanted to map pixels to hexfields, where I had to get the borderline cases right: https://bitbucket.org/ArneBab/hexbattle/src/38ad49c04836/hexgrid.py#cl-24

This likely won’t hit me in the game, but it really hurts in the doctests.

PS: I like the naming as “allow other rounding modes”, so I changed the title of the bug. I hope that’s OK.

PPS: Thank you for all your replies! The bugtracker feels really welcoming and helpful, even when reporting something as a bug, which is just a difference in goal definition. I hope it will turn out to be useful for the community!
History
Date User Action Args
2011-09-29 15:57:04ArneBabsetrecipients: + ArneBab, mark.dickinson, r.david.murray, skrah
2011-09-29 15:57:04ArneBabsetmessageid: <1317311824.47.0.814324482098.issue13060@psf.upfronthosting.co.za>
2011-09-29 15:57:03ArneBablinkissue13060 messages
2011-09-29 15:57:03ArneBabcreate