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 belopolsky
Recipients amaury.forgeotdarc, belopolsky, jribbens, vstinner, webograph
Date 2008-11-14.18:52:12
SpamBayes Score 0.02527333
Marked as misclassified No
Message-id <d38f5330811141052n79823377md53f376aeb1dfbfa@mail.gmail.com>
In-reply-to <200811141927.06978.victor.stinner@haypocalc.com>
Content
On Fri, Nov 14, 2008 at 1:28 PM, STINNER Victor <report@bugs.python.org> wrote:
..
> What do you think about:
>  timedelta / <timedelta or int or float>  # only with __future__.divison
>  timedelta // <timedelta or int>
>  timedelta % <timedelta or int>
>  divmod(timedelta, <timedelta or int>)
> with:
>  timedelta // int -> timedelta
already there

+1

+1

+1

timedelta % float -> timedelta (because int % float -> int works) ?

+1

+1

divmod(timedelta, float) -> (timedelta, timedelta) ?

-1

Only timedelta / timedelta should produce dimensionless numbers.
timedelta / <float or int> should be disallowed in true division mode.
 I am +0 on timedelta / timedelta -> float in true division mode.
History
Date User Action Args
2008-11-14 18:52:13belopolskysetrecipients: + belopolsky, jribbens, amaury.forgeotdarc, vstinner, webograph
2008-11-14 18:52:12belopolskylinkissue2706 messages
2008-11-14 18:52:12belopolskycreate