Message190699
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 ... |
|
Date |
User |
Action |
Args |
2013-06-05 22:17:55 | belopolsky | set | recipients:
+ belopolsky, skip.montanaro, ronaldoussoren, eric.smith, maker, petri.lehtinen, francismb, thezulk, joar, jbatista |
2013-06-05 22:17:55 | belopolsky | set | messageid: <1370470675.17.0.726561889018.issue17267@psf.upfronthosting.co.za> |
2013-06-05 22:17:55 | belopolsky | link | issue17267 messages |
2013-06-05 22:17:55 | belopolsky | create | |
|