[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/issue36205>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Mac runs Mojave with Clang 10.0.1, so I haven't actually been able to test 
the rusage path yet to make absolutely sure that the patch does the right thing.

--
nosy: +rvijayak

___
Python tracker 
<https://bugs.python.org/issue36205>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:dfad352267, Jun 12 2018, 01:00:10) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from contextvars import ContextVar
>>> var = ContextVar('var')
>>> var.name
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'ContextVar' object has no attribute 'name'

--
components: Library (Lib)
messages: 320637
nosy: rvijayak, yselivanov
priority: normal
severity: normal
status: open
title: ContextVar does not have a "name" attribute
type: behavior
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue33985>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com