Message194216
I believe this is related to the fact that timedelta * float is not supported in 2.x:
Python 2.7.5 (default, May 24 2013, 15:56:16)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import *
>>> timedelta(2) * 0.5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for *: 'datetime.timedelta' and 'float'
I don't see why this is a barrier to Python 3 transitions. Before you turn on true division you should replace all instances of floor division with '//' anyways. Just treat instances of timedelta / int as you would instances of int / int. |
|
Date |
User |
Action |
Args |
2013-08-02 22:43:31 | belopolsky | set | recipients:
+ belopolsky, lemburg, exarkun, pitrou, madison.may |
2013-08-02 22:43:31 | belopolsky | set | messageid: <1375483411.35.0.146250533736.issue18629@psf.upfronthosting.co.za> |
2013-08-02 22:43:31 | belopolsky | link | issue18629 messages |
2013-08-02 22:43:31 | belopolsky | create | |
|