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

Skip to content

Commit d8d1cea

Browse files
committed
Merged revisions 85156 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r85156 | senthil.kumaran | 2010-10-02 08:46:04 +0530 (Sat, 02 Oct 2010) | 3 lines Fix - issue10010 .. index:: position in the docs. ........
1 parent f9c957f commit d8d1cea

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
@@ -1409,6 +1409,22 @@ arbitrary object).
14091409
Note that while lists allow their items to be of any type, bytearray object
14101410
"items" are all integers in the range 0 <= x < 256.
14111411

1412+
.. index::
1413+
triple: operations on; sequence; types
1414+
triple: operations on; list; type
1415+
pair: subscript; assignment
1416+
pair: slice; assignment
1417+
statement: del
1418+
single: append() (sequence method)
1419+
single: extend() (sequence method)
1420+
single: count() (sequence method)
1421+
single: index() (sequence method)
1422+
single: insert() (sequence method)
1423+
single: pop() (sequence method)
1424+
single: remove() (sequence method)
1425+
single: reverse() (sequence method)
1426+
single: sort() (sequence method)
1427+
14121428
+------------------------------+--------------------------------+---------------------+
14131429
| Operation | Result | Notes |
14141430
+==============================+================================+=====================+
@@ -1453,21 +1469,6 @@ Note that while lists allow their items to be of any type, bytearray object
14531469
| ``s.sort([key[, reverse]])`` | sort the items of *s* in place | (6), (7), (8) |
14541470
+------------------------------+--------------------------------+---------------------+
14551471

1456-
.. index::
1457-
triple: operations on; sequence; types
1458-
triple: operations on; list; type
1459-
pair: subscript; assignment
1460-
pair: slice; assignment
1461-
statement: del
1462-
single: append() (sequence method)
1463-
single: extend() (sequence method)
1464-
single: count() (sequence method)
1465-
single: index() (sequence method)
1466-
single: insert() (sequence method)
1467-
single: pop() (sequence method)
1468-
single: remove() (sequence method)
1469-
single: reverse() (sequence method)
1470-
single: sort() (sequence method)
14711472

14721473
Notes:
14731474

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)