[New-bugs-announce] [issue12831] 2to3 and integer division

Alexander Rødseth report at bugs.python.org
Wed Aug 24 14:31:04 CEST 2011


New submission from Alexander Rødseth <rodseth at 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.

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 142879
nosy: alexander256
priority: normal
severity: normal
status: open
title: 2to3 and integer division
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12831>
_______________________________________


More information about the New-bugs-announce mailing list