Author madison.may
Recipients exarkun, madison.may, pitrou
Date 2013-08-02.21:27:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375478878.14.0.279166874419.issue18629@psf.upfronthosting.co.za>
In-reply-to
Content
I agree -- it's not at all intuitive that the floor division returns a decimal number of seconds, while float division raises an error.  This should probably be cleaned up.   

In python 3.4, both float division and integer division return decimal numbers of seconds -- that's not all that intuitive, either.  

Python 3.4.0a0 (default:d5536c06a082+, Jul 11 2013, 20:23:54) 
[GCC 4.8.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import timedelta
>>> print(timedelta(seconds=3)/2)
0:00:01.500000
>>> print(timedelta(seconds=3)//2)
0:00:01.500000
History
Date User Action Args
2013-08-02 21:27:58madison.maysetrecipients: + madison.may, exarkun, pitrou
2013-08-02 21:27:58madison.maysetmessageid: <1375478878.14.0.279166874419.issue18629@psf.upfronthosting.co.za>
2013-08-02 21:27:58madison.maylinkissue18629 messages
2013-08-02 21:27:57madison.maycreate