This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author l0nwlf
Recipients brett.cannon, l0nwlf, skip.montanaro, tebeka, vstinner, webograph
Date 2010-03-31.01:14:22
SpamBayes Score 5.551115e-16
Marked as misclassified No
Message-id <1269998065.14.0.675729813767.issue1083@psf.upfronthosting.co.za>
In-reply-to
Content
I do not understand why python2.7 is marked in Version tag ?

I reproduced the error on 3.1 but no isues on 2.7

06:39:30 l0nwlf-MBP:data $ python2.7
Python 2.7a4+ (trunk:78750, Mar  7 2010, 08:09:00) 
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> d = datetime.timedelta(1)
>>> d / 2
datetime.timedelta(0, 43200)
>>> d // 2
datetime.timedelta(0, 43200)
>>> 

06:41:13 l0nwlf-MBP:data $ python3.1
Python 3.1.1 (r311:74480, Mar 21 2010, 20:21:46) 
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> d = datetime.timedelta(1)
>>> d / 2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for /: 'datetime.timedelta' and 'int'
>>> d // 2
datetime.timedelta(0, 43200)
>>>
History
Date User Action Args
2010-03-31 01:14:25l0nwlfsetrecipients: + l0nwlf, skip.montanaro, brett.cannon, tebeka, vstinner, webograph
2010-03-31 01:14:25l0nwlfsetmessageid: <1269998065.14.0.675729813767.issue1083@psf.upfronthosting.co.za>
2010-03-31 01:14:23l0nwlflinkissue1083 messages
2010-03-31 01:14:22l0nwlfcreate