Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue33985

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:ContextVar does not have a "name" attribute
Type:behaviorStage:resolved
Components:Interpreter CoreVersions:Python 3.8, Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: miss-islington, ned.deily, rvijayak, yselivanov
Priority:highKeywords:patch

Created on2018-06-27 22:45 byrvijayak, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 7980mergedyselivanov,2018-06-27 22:59
PR 7995mergedmiss-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)*(Python committer)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)*(Python committer)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
DateUserActionArgs
2022-04-11 14:59:02adminsetgithub: 78166
2018-06-28 17:58:08yselivanovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-06-28 17:40:03miss-islingtonsetnosy: +miss-islington
messages: +msg320678
2018-06-28 17:21:40miss-islingtonsetpull_requests: +pull_request7605
2018-06-28 17:20:57yselivanovsetpriority: release blocker -> high
2018-06-28 17:20:32yselivanovsetmessages: +msg320677
2018-06-27 22:59:11yselivanovsetkeywords: +patch
stage: patch review
pull_requests: +pull_request7591
2018-06-27 22:58:37yselivanovsetpriority: normal -> release blocker
versions: + Python 3.8
nosy: +ned.deily

messages: +msg320639

components: + Interpreter Core, - Library (Lib)
2018-06-27 22:45:59rvijayakcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp