mirror of https://github.com/python/cpython
Small updates to types member docs, backport from r65994.
This commit is contained in:
parent
69ed524045
commit
7161cbfcba
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
:mod:`types` --- Names for built-in types
|
:mod:`types` --- Names for built-in types
|
||||||
=========================================
|
=========================================
|
||||||
|
|
||||||
|
@ -117,13 +116,10 @@ The module defines the following names:
|
||||||
|
|
||||||
|
|
||||||
.. data:: FunctionType
|
.. data:: FunctionType
|
||||||
|
LambdaType
|
||||||
|
|
||||||
The type of user-defined functions and lambdas.
|
The type of user-defined functions and functions created by :keyword:`lambda`
|
||||||
|
expressions.
|
||||||
|
|
||||||
.. data:: LambdaType
|
|
||||||
|
|
||||||
An alternate name for ``FunctionType``.
|
|
||||||
|
|
||||||
|
|
||||||
.. data:: GeneratorType
|
.. data:: GeneratorType
|
||||||
|
@ -143,7 +139,7 @@ The module defines the following names:
|
||||||
|
|
||||||
.. data:: ClassType
|
.. data:: ClassType
|
||||||
|
|
||||||
The type of user-defined classes.
|
The type of user-defined :term:`old-style class`\es.
|
||||||
|
|
||||||
|
|
||||||
.. data:: InstanceType
|
.. data:: InstanceType
|
||||||
|
@ -162,13 +158,11 @@ The module defines the following names:
|
||||||
|
|
||||||
|
|
||||||
.. data:: BuiltinFunctionType
|
.. data:: BuiltinFunctionType
|
||||||
|
BuiltinMethodType
|
||||||
|
|
||||||
The type of built-in functions like :func:`len` or :func:`sys.exit`.
|
The type of built-in functions like :func:`len` or :func:`sys.exit`, and
|
||||||
|
methods of built-in classes. (Here, the term "built-in" means "written in
|
||||||
|
C".)
|
||||||
.. data:: BuiltinMethodType
|
|
||||||
|
|
||||||
An alternate name for ``BuiltinFunction``.
|
|
||||||
|
|
||||||
|
|
||||||
.. data:: ModuleType
|
.. data:: ModuleType
|
||||||
|
|
Loading…
Reference in New Issue