diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-05-04 10:04:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 10:04:41 (GMT) |
commit | 6ab463684b9d79880d98cd1f1406aa86af65985e (patch) | |
tree | a74045a23b9a8daa77bce351a3882093f2d5d6c9 /Doc/reference/compound_stmts.rst | |
parent | b0ce2db1184124575d5934d205344a9cf5debb79 (diff) | |
download | cpython-6ab463684b9d79880d98cd1f1406aa86af65985e.zip cpython-6ab463684b9d79880d98cd1f1406aa86af65985e.tar.gz cpython-6ab463684b9d79880d98cd1f1406aa86af65985e.tar.bz2 |
GH-97950: Use new-style index directive ('object') (#104158)
* Uncomment object removal in pairindextypes
* Use new-style index directive ('object') - C API
* Use new-style index directive ('object') - Library
* Use new-style index directive ('object') - Reference
* Use new-style index directive ('object') - Tutorial
Diffstat (limited to 'Doc/reference/compound_stmts.rst')
-rw-r--r-- | Doc/reference/compound_stmts.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 1f03180..5750d31 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -147,7 +147,7 @@ The :keyword:`!for` statement pair: keyword; else pair: target; list pair: loop; statement - object: sequence + pair: object; sequence single: : (colon); compound statement The :keyword:`for` statement is used to iterate over the elements of a sequence @@ -298,7 +298,7 @@ keeping all locals in that frame alive until the next garbage collection occurs. .. index:: pair: module; sys - object: traceback + pair: object; traceback Before an :keyword:`!except` clause's suite is executed, the exception is stored in the :mod:`sys` module, where it can be accessed @@ -1194,8 +1194,8 @@ Function definitions pair: function; definition pair: function; name pair: name; binding - object: user-defined function - object: function + pair: object; user-defined function + pair: object; function pair: function; name pair: name; binding single: () (parentheses); function definition @@ -1363,7 +1363,7 @@ Class definitions ================= .. index:: - object: class + pair: object; class statement: class pair: class; definition pair: class; name |