Message190699
| Author |
belopolsky |
| Recipients |
belopolsky, eric.smith, francismb, jbatista, joar, maker, petri.lehtinen, ronaldoussoren, skip.montanaro, thezulk |
| Date |
2013年06月05日.22:17:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1370470675.17.0.726561889018.issue17267@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
See also issue 3250. If we add mod 24h arithmetics, I would like to see something like time.add_with_carry(timedelta) -> (int, time) method. With it, users who need a specific overflow behavior will be able to implement it easily:
def check_add(t, td):
carry, result = t.add_with_carry(tf)
if carry:
raise ... |
|