[issue37716] 2to3 Accuracy of calculation

2019-07-29 Thread Xinmeng Xia
New submission from Xinmeng Xia : In Python 2,the output is 1366. After converting by 2to3, the output is 1197.1463275484991 There exists bug in the conversion of 2to3. The output should be consistent for original Python2 code and converted Python3 code. At line 10 of this python file. The

[issue37716] 2to3 Accuracy of calculation

2019-07-30 Thread Mark Dickinson
Mark Dickinson added the comment: This is essentially a duplicate of #12831. There's nothing 2to3 can reasonably do here, since it isn't in a position to guess whether true division or floor division was intended. As noted in the duplicate, the "-3" and the "-Q" command line options can help