diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-08-19 08:04:07 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-08-19 08:04:07 (GMT) |
commit | 3f015a64b83fd243c165147d225cb37dc7e3e645 (patch) | |
tree | 051733732e931ef146f3da1b4509d87382d90cff /Doc/library/functions.rst | |
parent | 2a400fd62a292e43df75ca687c4d350e9a98af44 (diff) | |
download | cpython-3f015a64b83fd243c165147d225cb37dc7e3e645.zip cpython-3f015a64b83fd243c165147d225cb37dc7e3e645.tar.gz cpython-3f015a64b83fd243c165147d225cb37dc7e3e645.tar.bz2 |
Issue #27157: Make only type() itself accept the one-argument form
Patch by Eryk Sun and Emanuel Barry.
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r-- | Doc/library/functions.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 7216f1d..be6f2ec 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1463,6 +1463,9 @@ are always available. They are listed here in alphabetical order. See also :ref:`bltin-type-objects`. + .. versionchanged:: 3.6 + Subclasses of :class:`type` which don't override ``type.__new__`` may no + longer use the one-argument form to get the type of an object. .. function:: vars([object]) |