[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: I've merged Yasser's PR (thank you!), but in the review discussion for that, we noticed something else: the `total_seconds()` documentation mentions the floating point dynamic resolution problem, but doesn't mention using `//` or `divmod()` as the fix for

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-15 Thread miss-islington
miss-islington added the comment: New changeset e213cd6325f2d6f116b6c3dce109cdf21f6263d5 by Miss Islington (bot) in branch '3.7': bpo-36138: Clarify docs about converting datetime.timedelta to scalars. (GH-12137)

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +12329 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset f40b4a0b6277b2779b9ded3736325489f2af93e4 by Nick Coghlan (Yasser A) in branch 'master': bpo-36138: Clarify docs about converting datetime.timedelta to scalars. (GH-12137)

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Change by Yasser Alshalaan : -- pull_requests: -12138 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Change by Yasser Alshalaan : -- pull_requests: +12139 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Change by Yasser Alshalaan : -- keywords: +patch pull_requests: +12138 stage: -> patch review ___ Python tracker ___ ___

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Yasser Alshalaan added the comment: I'll do this in a moment I'll have the PR -- nosy: +Yasser Alshalaan ___ Python tracker ___

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-02-27 Thread Fred L. Drake, Jr.
Change by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-02-27 Thread Paul Ganssle
New submission from Paul Ganssle : In a recent python-dev thread, there was some confusion about how to get something like `timedelta.total_microseconds()`. There is already an existing, supported idiom for this, which is that `timedelta` implements division: td = timedelta(hours=1)