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 <>
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)
>>> print(timedelta(seconds=3)//2)
Date User Action Args
2013-08-02 21:27:58madison.maysetrecipients: + madison.may, exarkun, pitrou
2013-08-02 21:27:58madison.maysetmessageid: <>
2013-08-02 21:27:58madison.maylinkissue18629 messages
2013-08-02 21:27:57madison.maycreate