Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7cafd26

Browse files
committed
Fix - issue10010 .. index:: position in the docs.
1 parent aec5fd1 commit 7cafd26

2 files changed

Lines changed: 32 additions & 31 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,22 @@ arbitrary object).
15921592
Note that while lists allow their items to be of any type, bytearray object
15931593
"items" are all integers in the range 0 <= x < 256.
15941594

1595+
.. index::
1596+
triple: operations on; sequence; types
1597+
triple: operations on; list; type
1598+
pair: subscript; assignment
1599+
pair: slice; assignment
1600+
statement: del
1601+
single: append() (sequence method)
1602+
single: extend() (sequence method)
1603+
single: count() (sequence method)
1604+
single: index() (sequence method)
1605+
single: insert() (sequence method)
1606+
single: pop() (sequence method)
1607+
single: remove() (sequence method)
1608+
single: reverse() (sequence method)
1609+
single: sort() (sequence method)
1610+
15951611
+------------------------------+--------------------------------+---------------------+
15961612
| Operation | Result | Notes |
15971613
+==============================+================================+=====================+
@@ -1636,21 +1652,6 @@ Note that while lists allow their items to be of any type, bytearray object
16361652
| ``s.sort([key[, reverse]])`` | sort the items of *s* in place | (6), (7), (8) |
16371653
+------------------------------+--------------------------------+---------------------+
16381654

1639-
.. index::
1640-
triple: operations on; sequence; types
1641-
triple: operations on; list; type
1642-
pair: subscript; assignment
1643-
pair: slice; assignment
1644-
statement: del
1645-
single: append() (sequence method)
1646-
single: extend() (sequence method)
1647-
single: count() (sequence method)
1648-
single: index() (sequence method)
1649-
single: insert() (sequence method)
1650-
single: pop() (sequence method)
1651-
single: remove() (sequence method)
1652-
single: reverse() (sequence method)
1653-
single: sort() (sequence method)
16541655

16551656
Notes:
16561657

Doc/reference/datamodel.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,22 @@ Internal types
816816
objects, code objects are immutable and contain no references (directly or
817817
indirectly) to mutable objects.
818818

819+
.. index::
820+
single: co_argcount (code object attribute)
821+
single: co_code (code object attribute)
822+
single: co_consts (code object attribute)
823+
single: co_filename (code object attribute)
824+
single: co_firstlineno (code object attribute)
825+
single: co_flags (code object attribute)
826+
single: co_lnotab (code object attribute)
827+
single: co_name (code object attribute)
828+
single: co_names (code object attribute)
829+
single: co_nlocals (code object attribute)
830+
single: co_stacksize (code object attribute)
831+
single: co_varnames (code object attribute)
832+
single: co_cellvars (code object attribute)
833+
single: co_freevars (code object attribute)
834+
819835
Special read-only attributes: :attr:`co_name` gives the function name;
820836
:attr:`co_argcount` is the number of positional arguments (including arguments
821837
with default values); :attr:`co_nlocals` is the number of local variables used
@@ -833,22 +849,6 @@ Internal types
833849
:attr:`co_stacksize` is the required stack size (including local variables);
834850
:attr:`co_flags` is an integer encoding a number of flags for the interpreter.
835851

836-
.. index::
837-
single: co_argcount (code object attribute)
838-
single: co_code (code object attribute)
839-
single: co_consts (code object attribute)
840-
single: co_filename (code object attribute)
841-
single: co_firstlineno (code object attribute)
842-
single: co_flags (code object attribute)
843-
single: co_lnotab (code object attribute)
844-
single: co_name (code object attribute)
845-
single: co_names (code object attribute)
846-
single: co_nlocals (code object attribute)
847-
single: co_stacksize (code object attribute)
848-
single: co_varnames (code object attribute)
849-
single: co_cellvars (code object attribute)
850-
single: co_freevars (code object attribute)
851-
852852
.. index:: object: generator
853853

854854
The following flag bits are defined for :attr:`co_flags`: bit ``0x04`` is set if

0 commit comments

Comments
 (0)