Ah yes, good point, I forgot about this because IIRC it's not supported in Python 2.7, so it's not a particularly common idiom in polyglot library code.
Obviously any new methods would be Python 3-only, so there's no
benefit to adding them.
Best,
Paul
On Thu, Feb 14, 2019 at 9:07 AM Paul Ganssle <paul@ganssle.io> wrote:
I don't think it's totally unreasonable to have other total_X() methods, where X would be days, hours, minutes and microseconds
I do. I was against adding the total_seconds() method to begin with because the same effect can be achieved with
delta / timedelta(seconds=1)
this is easily generalized to
delta / timedelta(X=1)
where X can be days, hours, minutes or microseconds.