Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs
[issue2805] 2to3 doesn't correct divisions
 

Index | Next | Previous | View Flat


report at bugs

May 9, 2008, 1:51 PM


Views: 198
Permalink
[issue2805] 2to3 doesn't correct divisions

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>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Subject User Time
[issue2805] 2to3 doesn't correct divisions report at bugs May 9, 2008, 1:51 PM
    [issue2805] 2to3 doesn't correct divisions report at bugs May 9, 2008, 2:04 PM
    [issue2805] 2to3 doesn't correct divisions report at bugs May 9, 2008, 2:26 PM
    [issue2805] 2to3 doesn't correct divisions report at bugs May 9, 2008, 3:11 PM
    [issue2805] 2to3 doesn't correct divisions report at bugs May 10, 2008, 6:15 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.