mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
GH-97950: Use new-style index directive ('module') (#103996)
* Use new-style index directive ('module') - C API * Use new-style index directive ('module') - Library * Use new-style index directive ('module') - Reference * Use new-style index directive ('module') - Tutorial * Uncomment module removal in pairindextypes * Use new-style index directive ('module') - C API * Use new-style index directive ('module') - Library * Use new-style index directive ('module') - Reference
This commit is contained in:
parent
cd9a56c2b0
commit
d0122372f2
33 changed files with 65 additions and 69 deletions
|
@ -297,7 +297,7 @@ traceback attached to them, they form a reference cycle with the stack frame,
|
|||
keeping all locals in that frame alive until the next garbage collection occurs.
|
||||
|
||||
.. index::
|
||||
module: sys
|
||||
pair: module; sys
|
||||
object: traceback
|
||||
|
||||
Before an :keyword:`!except` clause's suite is executed,
|
||||
|
|
|
@ -377,7 +377,7 @@ Sequences
|
|||
(and hence unhashable), byte arrays otherwise provide the same interface
|
||||
and functionality as immutable :class:`bytes` objects.
|
||||
|
||||
.. index:: module: array
|
||||
.. index:: pair: module; array
|
||||
|
||||
The extension module :mod:`array` provides an additional example of a
|
||||
mutable sequence type, as does the :mod:`collections` module.
|
||||
|
@ -451,8 +451,8 @@ Mappings
|
|||
section :ref:`dict`).
|
||||
|
||||
.. index::
|
||||
module: dbm.ndbm
|
||||
module: dbm.gnu
|
||||
pair: module; dbm.ndbm
|
||||
pair: module; dbm.gnu
|
||||
|
||||
The extension modules :mod:`dbm.ndbm` and :mod:`dbm.gnu` provide
|
||||
additional examples of mapping types, as does the :mod:`collections`
|
||||
|
@ -909,7 +909,7 @@ Class instances
|
|||
I/O objects (also known as file objects)
|
||||
.. index::
|
||||
builtin: open
|
||||
module: io
|
||||
pair: module; io
|
||||
single: popen() (in module os)
|
||||
single: makefile() (socket method)
|
||||
single: sys.stdin
|
||||
|
|
|
@ -151,7 +151,7 @@ to previously bound variables in the nearest enclosing function scope.
|
|||
:exc:`SyntaxError` is raised at compile time if the given name does not
|
||||
exist in any enclosing function scope.
|
||||
|
||||
.. index:: module: __main__
|
||||
.. index:: pair: module; __main__
|
||||
|
||||
The namespace for a module is automatically created the first time a module is
|
||||
imported. The main module for a script is always called :mod:`__main__`.
|
||||
|
|
|
@ -21,9 +21,9 @@ Complete Python programs
|
|||
.. index:: single: program
|
||||
|
||||
.. index::
|
||||
module: sys
|
||||
module: __main__
|
||||
module: builtins
|
||||
pair: module; sys
|
||||
pair: module; __main__
|
||||
pair: module; builtins
|
||||
|
||||
While a language specification need not prescribe how the language interpreter
|
||||
is invoked, it is useful to have a notion of a complete Python program. A
|
||||
|
@ -38,7 +38,7 @@ the next section.
|
|||
|
||||
.. index::
|
||||
single: interactive mode
|
||||
module: __main__
|
||||
pair: module; __main__
|
||||
|
||||
The interpreter may also be invoked in interactive mode; in this case, it does
|
||||
not read and execute a complete program but reads and executes one statement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue