[issue36205] Python 3.7 and 3.8 process_time is not reported correctly when built on older macOS versions

2019-08-26 Thread Rajiv Vijayakumar
Rajiv Vijayakumar added the comment: I think I have found the root cause - there appears to be a typo in the rusage implementation - instead of computing the total time as utime+stime, the code performs utime+utime, which explains the doubling observed. I have create a PR with the fix. My

[issue36205] Python 3.7 and 3.8 process_time is not reported correctly when built on older macOS versions

2019-08-26 Thread Rajiv Vijayakumar
Change by Rajiv Vijayakumar : -- pull_requests: +15215 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15538 ___ Python tracker <https://bugs.python.org/issu

[issue33985] ContextVar does not have a "name" attribute

2018-06-27 Thread Rajiv Vijayakumar
New submission from Rajiv Vijayakumar : Per PEP 567 and the contextvars documentation, I expected that a ContextVar would have a "name" read-only attribute. However I get an AttributeError when accessing ContextVar.name with 3.7.0rc1: > python Python 3.7.0rc1 (v3.7.0rc1:dfad3