Event Timeline
Comment Actions
@rama int(length / 2) is evaluated at 1 in both Python 2 and 3.
The difference is the argument: if length = 3, this will execute int(1) and int(1.5).
F2978: Python 2 and 3 behaviors related to divide and integer floor. | |
May 22 2015, 12:27 |
@rama int(length / 2) is evaluated at 1 in both Python 2 and 3.
The difference is the argument: if length = 3, this will execute int(1) and int(1.5).