<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>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.</p>
<p>Obviously any new methods would be Python 3-only, so there's no
benefit to adding them.<br>
<br>
Best,</p>
<p>Paul<br>
</p>
<div class="moz-cite-prefix">On 2/14/19 1:12 PM, Alexander
Belopolsky wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAP7h-xavkxsqF60M_aR0641M21D+oeVj90f7=h671+8Y5TUyeA@mail.gmail.com">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Feb 14, 2019 at 9:07
AM Paul Ganssle <<a href="mailto:paul@ganssle.io"
moz-do-not-send="true">paul@ganssle.io</a>> wrote:<br>
</div>
<blockquote class="gmail_quote">
<div>
<p>I don't think it's totally unreasonable to have other
total_X() methods, where X would be days, hours, minutes
and microseconds</p>
</div>
</blockquote>
<div>I do. I was against adding the total_seconds() method to
begin with because the same effect can be achieved with</div>
<div><br>
</div>
<div>delta / timedelta(seconds=1)</div>
<div><br>
</div>
<div>this is easily generalized to</div>
<div><br>
</div>
<div>delta / timedelta(X=1)<br>
</div>
<div><br>
</div>
<div>where X can be days, hours, minutes or microseconds.<br>
</div>
<div> </div>
</div>
</div>
</blockquote>
</body>
</html>