From 0e4701169a3e3a022f03997399d04d28ca90c620 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 1 Feb 2017 10:55:58 -0800 Subject: Issue #29377: Add three new wrappers to types.py (Manuel Krebber). --- Doc/library/types.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'Doc/library/types.rst') diff --git a/Doc/library/types.rst b/Doc/library/types.rst index 0c5619c713..2602e3cf76 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -132,6 +132,29 @@ Standard names are defined for the following types: C".) +.. data:: SlotWrapperType + + The type of methods of some built-in data types and base classes such as + :meth:`object.__init__` or :meth:`object.__lt__`. + + .. versionadded:: 3.7 + + +.. data:: MethodWrapperType + + The type of *bound* methods of some built-in data types and base classes. + For example it is the type of :code:`object().__str__`. + + .. versionadded:: 3.7 + + +.. data:: MethodDescriptorType + + The type of methods of some built-in data types such as :meth:`str.join`. + + .. versionadded:: 3.7 + + .. class:: ModuleType(name, doc=None) The type of :term:`modules `. Constructor takes the name of the -- cgit v1.2.1