Message143001
> "/ 2" is an integer division, so it should be "// 3" in Python 3.
No, I don't think that's right: 2to3 has no way of knowing that the programmer intended an integer division here (self.maxstars could be a float).
Instead, you should always use '//' in Python 2 code where an integer division is intended. |
|
Date |
User |
Action |
Args |
2011-08-26 06:53:18 | mark.dickinson | set | recipients:
+ mark.dickinson, alexander256 |
2011-08-26 06:53:18 | mark.dickinson | set | messageid: <1314341598.51.0.665494105251.issue12831@psf.upfronthosting.co.za> |
2011-08-26 06:53:17 | mark.dickinson | link | issue12831 messages |
2011-08-26 06:53:17 | mark.dickinson | create | |
|