[issue2706] datetime: define division timedelta/timedelta

2008-07-19 Thread webograph
webograph <[EMAIL PROTECTED]> added the comment: this is the mentioned patch without the function pointers, in case it better fits the python coding style. Added file: http://bugs.python.org/file10946/datetime_datetime_division_dupcode.patch ___

[issue2706] datetime: define division timedelta/timedelta

2008-04-27 Thread webograph
New submission from webograph <[EMAIL PROTECTED]>: i suggest that division be defined for timedelta1/timedelta2, in that sense that it gives how many times timedelta2 fits in timedelta1 (ie the usual meaning of division), using integer arithmetics for floor division (//) and returning flo

[issue1083] Confusing error message when dividing timedelta using /

2008-11-20 Thread webograph
Changes by webograph <[EMAIL PROTECTED]>: -- nosy: +webograph ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1083> ___ ___ Python

[issue2706] datetime: define division timedelta/timedelta

2009-03-21 Thread webograph
webograph added the comment: i don't think this can be solved in a way that is independent of the chosen unit, as it requires a concept of "whole time-units" (as in "whole numbers"); whether these be seconds or minutes would be completely arbitrary. (`5 minutes % 3 =