[New-bugs-announce] [issue2805] 2to3 doesn't correct divisions
Guilherme Polo
report at bugs.python.org
Fri May 9 22:51:51 CEST 2008
New submission from Guilherme Polo <ggpolo at gmail.com>:
Given the sample code:
for i in range(len([1, 2]) / 2): pass
print 2 / 3
2to3 tells no files need to be modified after running it over this code,
but range doesn't accept float values and the print result will differ.
Would it be too expensive for 2to3 to suggest changing '/' to '//' ?
----------
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 66486
nosy: collinwinter, gpolo
severity: normal
status: open
title: 2to3 doesn't correct divisions
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2805>
__________________________________
More information about the New-bugs-announce
mailing list