On Mon, Apr 19, 2010 at 4:09 PM, Mark Dickinson
<report@bugs.python.org> wrote:
Why is divmod(timedelta, timedelta) supported but not timedelta % timedelta? I think if one is implemented, the other should be too.
I noticed that as I was porting Victor's patch. I did not add timedelta % timedelta because I found out that timedelta % int is not supported in the released versions while timedelta // int is.
I was contemplating opening a separate RFE for divmod(timedelta, int) and timedelta % int because I feel that increasing the number of added features will reduce the likelihood of patch being accepted. Personally, I only had need for timedelta // timedelta in my code and not any other proposed features.