
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2018-06-27 22:45 byrvijayak, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 7980 | merged | yselivanov,2018-06-27 22:59 | |
| PR 7995 | merged | miss-islington,2018-06-28 17:21 | |
| Messages (4) | |||
|---|---|---|---|
| msg320637 -(view) | Author: Rajiv Vijayakumar (rvijayak)* | Date: 2018-06-27 22:45 | |
PerPEP 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:> pythonPython 3.7.0rc1 (v3.7.0rc1:dfad352267, Jun 12 2018, 01:00:10) [Clang 6.0 (clang-600.0.57)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> from contextvars import ContextVar>>> var = ContextVar('var')>>> var.nameTraceback (most recent call last): File "<stdin>", line 1, in <module>AttributeError: 'ContextVar' object has no attribute 'name' | |||
| msg320639 -(view) | Author: Yury Selivanov (yselivanov)*![]() | Date: 2018-06-27 22:58 | |
Yeah, it seems that I forgot to implement ContextVars.name attribute. Will have a PR shortly.Expect to see this fixed in 3.7.1 in a couple of months. Adding Ned to the issue just in case. | |||
| msg320677 -(view) | Author: Yury Selivanov (yselivanov)*![]() | Date: 2018-06-28 17:20 | |
New changeset41cb0baea96a80360971908a0bd79d9d40dd5e44 by Yury Selivanov in branch 'master':bpo-33985: Implement ContextVar.name attribute. (GH-7980)https://github.com/python/cpython/commit/41cb0baea96a80360971908a0bd79d9d40dd5e44 | |||
| msg320678 -(view) | Author: miss-islington (miss-islington) | Date: 2018-06-28 17:40 | |
New changeset4c20d2bf5daaaa174260558c71052b73d73b6c34 by Miss Islington (bot) in branch '3.7':bpo-33985: Implement ContextVar.name attribute. (GH-7980)https://github.com/python/cpython/commit/4c20d2bf5daaaa174260558c71052b73d73b6c34 | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:02 | admin | set | github: 78166 |
| 2018-06-28 17:58:08 | yselivanov | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2018-06-28 17:40:03 | miss-islington | set | nosy: +miss-islington messages: +msg320678 |
| 2018-06-28 17:21:40 | miss-islington | set | pull_requests: +pull_request7605 |
| 2018-06-28 17:20:57 | yselivanov | set | priority: release blocker -> high |
| 2018-06-28 17:20:32 | yselivanov | set | messages: +msg320677 |
| 2018-06-27 22:59:11 | yselivanov | set | keywords: +patch stage: patch review pull_requests: +pull_request7591 |
| 2018-06-27 22:58:37 | yselivanov | set | priority: normal -> release blocker versions: + Python 3.8 nosy: +ned.deily messages: +msg320639 components: + Interpreter Core, - Library (Lib) |
| 2018-06-27 22:45:59 | rvijayak | create | |