mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Issue #29377: Add three new wrappers to types.py (Manuel Krebber).
This commit is contained in:
parent
72268ae1c0
commit
934aba66ef
4 changed files with 49 additions and 0 deletions
|
|
@ -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 <module>`. Constructor takes the name of the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue