This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author levkivskyi
Recipients Gabriel Tremblay, gvanrossum, levkivskyi, pablogsal
Date 2018-08-19.20:49:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1534711774.73.0.56676864532.issue34422@psf.upfronthosting.co.za>
In-reply-to
Content
This is an intentional change. It would be a bad idea to use `__name__` instead of what is currently `_name`, because semantics is subtly different. Also the fact that types in typing module used to be actual class objects was an implementation detail (also typing module is still provisional).

The problematic part here is that special types and generic type aliases are still documented as _classes_ in https://docs.python.org/3.7/library/typing.html, I think this needs to be updated. (Plus we should add an explicit note somewhere in the docs that static types and runtime classes should not be confused.)
History
Date User Action Args
2018-08-19 20:49:34levkivskyisetrecipients: + levkivskyi, gvanrossum, pablogsal, Gabriel Tremblay
2018-08-19 20:49:34levkivskyisetmessageid: <1534711774.73.0.56676864532.issue34422@psf.upfronthosting.co.za>
2018-08-19 20:49:34levkivskyilinkissue34422 messages
2018-08-19 20:49:34levkivskyicreate