Author rvijayak
Recipients rvijayak, yselivanov
Date 2018-06-27.22:45:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530139559.69.0.56676864532.issue33985@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2018-06-27 22:45:59rvijayaksetrecipients: + rvijayak, yselivanov
2018-06-27 22:45:59rvijayaksetmessageid: <1530139559.69.0.56676864532.issue33985@psf.upfronthosting.co.za>
2018-06-27 22:45:59rvijayaklinkissue33985 messages
2018-06-27 22:45:59rvijayakcreate