diff options
author | Ivan Levkivskyi <levkivskyi@gmail.com> | 2018-05-08 18:38:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 18:38:41 (GMT) |
commit | bd5f96581bf23f6d05fc106996428a8043b6b084 (patch) | |
tree | 4472cc045ee07777a8c7314fff24835a911cc856 /Doc/whatsnew | |
parent | ec1622d56c80d15740f7f8459c9a79fd55f5d3c7 (diff) | |
download | cpython-bd5f96581bf23f6d05fc106996428a8043b6b084.zip cpython-bd5f96581bf23f6d05fc106996428a8043b6b084.tar.gz cpython-bd5f96581bf23f6d05fc106996428a8043b6b084.tar.bz2 |
bpo-32717: Document PEP 560 (GH-6726)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.7.rst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 408fed4..cc76273 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -356,6 +356,25 @@ with the correct context in async/await code. PEP written and implemented by Yury Selivanov +PEP 560: Core support for typing module and generic types +--------------------------------------------------------- + +Initially :pep:`484` was designed in such way that it would not introduce *any* +changes to the core CPython interpreter. Now type hints and the :mod:`typing` +module are extensively used by the community, so this restriction is removed. +The PEP introduces two special methods :meth:`__class_getitem__` and +``__mro_entries__``, these methods are now used by most classes and special +constructs in :mod:`typing`. As a result, the speed of various operations +with types increased up to 7 times, the generic types can be used without +metaclass conflicts, and several long standing bugs in :mod:`typing` module are +fixed. + +.. seealso:: + + :pep:`560` -- Core support for typing module and generic types + PEP written and implemented by Ivan Levkivskyi + + New Development Mode: -X dev ---------------------------- |