[issue45736] 2to3 does not support integer division fixing
theeshallnotknowethme
report at bugs.python.org
Sat Nov 6 10:34:27 EDT 2021
theeshallnotknowethme <nohackingofkrowten at gmail.com> added the comment:
When 2to3 supports integer division fixing, there would be this behaviour:
- x = 2 ** 8 / 5 / 7
+ x = 2 ** 8 // 5 // 7
Basically convert any integer division to floor division. The PR I made only works for constant integers, and any improvement would be appreciated.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45736>
_______________________________________
More information about the Python-bugs-list
mailing list