Why can't timedeltas be divided?

Jon Ribbens jon+usenet at unequivocal.co.uk
Sun Apr 27 14:46:51 CEST 2008


On 2008-04-27, webograph <webograph at eml.cc> wrote:
> On 2008-04-27 14:18, Jon Ribbens wrote:
>> Yes, that's where it was decided that the datetime module was fine 
>> that way it is and must not be changed.
> could you give me some pointers to that discussion?

Well, http://bugs.python.org/issue1673409 seems very closely related.
As does the thread starting at
http://mail.python.org/pipermail/python-dev/2007-March/071776.html

> nevertheless, i fail to see such problems when dividing timedeltas -- 
> after all, `delta2 / 5 == delta1` works, so why should not `delta2 / 
> delta1 == 5`?

I used very similar arguments for the changes I wanted, and they
weren't appreciated ;-)



More information about the Python-list mailing list