[issue2706] datetime: define division timedelta/timedelta

Alexander Belopolsky report at bugs.python.org
Mon Apr 19 22:29:15 CEST 2010


Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:

On Mon, Apr 19, 2010 at 4:09 PM, Mark Dickinson <report at bugs.python.org>wrote:

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.

----------
Added file: http://bugs.python.org/file16995/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2706>
_______________________________________
-------------- next part --------------
<br><br><div class="gmail_quote">On Mon, Apr 19, 2010 at 4:09 PM, Mark Dickinson <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Why is divmod(timedelta, timedelta) supported but not timedelta % timedelta?  I think if one is implemented, the other should be too.<br><br></blockquote><div><br></div><div>I noticed that as I was porting Victor&#39;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.</div>
<div><br></div><div>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.</div>
</div>


More information about the Python-bugs-list mailing list