Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

You've spent a lot of time demonstrating behaviour, but have not given us any 
reason why you think the results given are wrong.

As far as I can tell, every single example you show is correct. You have even 
quoted one of the relevant sections from the docs. "This is not a bug..."

You've flagged this is a documentation bug, an IDLE bug, an interpreter core 
bug, a library bug, etc. It isn't all of those things! I don't know what you 
actually want: do you want to improve the documentation? Something else?

By the way, your function "my_round" is buggy. This is wrong:

my_round(2.675, 2)
2.68

The binary float 2.675 is exactly equal to 3011782250804019/1125899906842624, 
or in decimal, exactly 

2.67499999999999982236431605997495353221893310546875

Rounding to two decimal places is 2.67, not 2.68.

Can you explain why we shouldn't close this as Not A Bug?

----------
nosy: +steven.daprano

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39059>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to