[issue33985] ContextVar does not have a "name" attribute
Rajiv Vijayakumar
report at bugs.python.org
Wed Jun 27 18:45:59 EDT 2018
New submission from Rajiv Vijayakumar <rajiv.kumar at gmail.com>:
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 "<stdin>", line 1, in <module>
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 <report at bugs.python.org>
<https://bugs.python.org/issue33985>
_______________________________________
More information about the Python-bugs-list
mailing list