[issue12831] 2to3 and integer division

2011-08-26 Thread Alexander Rødseth
Alexander Rødseth rods...@gmail.com 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 rep...@bugs.python.org http

[issue12831] 2to3 and integer division

2011-08-24 Thread Alexander Rødseth
New submission from Alexander Rødseth rods...@gmail.com: 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 in Python 3. Thanks