消息 [75878]
On Fri, Nov 14, 2008 at 12:51 PM, STINNER Victor <report@bugs.python.org> wrote:
>
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
>
> Why not also implementing divmod()? It's useful to split a timedelta
> into, for example, (hours, minutes, seconds):
I agree and in this case mod should probably be implemented too.
With your patch:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for %: 'datetime.timedelta' and
'datetime.timedelta' |
|
| 日期 |
用户 |
动作 |
参数 |
| 2008-11-14 18:03:02 | belopolsky | 修改 | recipients:
+ belopolsky, jribbens, amaury.forgeotdarc, vstinner, webograph |
| 2008-11-14 18:03:00 | belopolsky | 链接 | issue2706 messages |
| 2008-11-14 18:03:00 | belopolsky | 创建 | |
|