[issue12831] 2to3 and integer division

2011-08-26 Thread Alexander Rødseth
Alexander Rødseth added the comment: Even though it's hard to cover every case, it should be possible in quite a few cases: self.maxstars = 4 half = self.maxstars / 2 -- ___ Python tracker <http://bugs.python.org/is

[issue12831] 2to3 and integer division

2011-08-24 Thread Alexander Rødseth
New submission from Alexander Rødseth : Hi, 2to3 is a great tool, but I think I found one case it doesn't catch, which is this change: -half = self.maxstars / 2 +half = self.maxstars // 2 "/ 2" is an integer division, so it should be "// 3&q