diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-10-02 03:25:12 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-10-02 03:25:12 (GMT) |
commit | d8d1cea56111352af75cf21aa56c6b82c17060ee (patch) | |
tree | be441117d5ef9b6222315bfa0834831e9e107d50 /Doc | |
parent | f9c957f2c6d1fb59d1817a24892b1e792fa0c66c (diff) | |
download | cpython-d8d1cea56111352af75cf21aa56c6b82c17060ee.zip cpython-d8d1cea56111352af75cf21aa56c6b82c17060ee.tar.gz cpython-d8d1cea56111352af75cf21aa56c6b82c17060ee.tar.bz2 |
Merged revisions 85156 via svnmerge from
svn+ssh://pythondev@svn.python.org/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.
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stdtypes.rst | 31 | ||||
-rw-r--r-- | Doc/reference/datamodel.rst | 32 |
2 files changed, 32 insertions, 31 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 0a5b882..1e2c47c 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1409,6 +1409,22 @@ arbitrary object). Note that while lists allow their items to be of any type, bytearray object "items" are all integers in the range 0 <= x < 256. +.. index:: + triple: operations on; sequence; types + triple: operations on; list; type + pair: subscript; assignment + pair: slice; assignment + statement: del + single: append() (sequence method) + single: extend() (sequence method) + single: count() (sequence method) + single: index() (sequence method) + single: insert() (sequence method) + single: pop() (sequence method) + single: remove() (sequence method) + single: reverse() (sequence method) + single: sort() (sequence method) + +------------------------------+--------------------------------+---------------------+ | Operation | Result | Notes | +==============================+================================+=====================+ @@ -1453,21 +1469,6 @@ Note that while lists allow their items to be of any type, bytearray object | ``s.sort([key[, reverse]])`` | sort the items of *s* in place | (6), (7), (8) | +------------------------------+--------------------------------+---------------------+ -.. index:: - triple: operations on; sequence; types - triple: operations on; list; type - pair: subscript; assignment - pair: slice; assignment - statement: del - single: append() (sequence method) - single: extend() (sequence method) - single: count() (sequence method) - single: index() (sequence method) - single: insert() (sequence method) - single: pop() (sequence method) - single: remove() (sequence method) - single: reverse() (sequence method) - single: sort() (sequence method) Notes: diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 3585ca7..3d1d26d 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -816,6 +816,22 @@ Internal types objects, code objects are immutable and contain no references (directly or indirectly) to mutable objects. + .. index:: + single: co_argcount (code object attribute) + single: co_code (code object attribute) + single: co_consts (code object attribute) + single: co_filename (code object attribute) + single: co_firstlineno (code object attribute) + single: co_flags (code object attribute) + single: co_lnotab (code object attribute) + single: co_name (code object attribute) + single: co_names (code object attribute) + single: co_nlocals (code object attribute) + single: co_stacksize (code object attribute) + single: co_varnames (code object attribute) + single: co_cellvars (code object attribute) + single: co_freevars (code object attribute) + Special read-only attributes: :attr:`co_name` gives the function name; :attr:`co_argcount` is the number of positional arguments (including arguments with default values); :attr:`co_nlocals` is the number of local variables used @@ -833,22 +849,6 @@ Internal types :attr:`co_stacksize` is the required stack size (including local variables); :attr:`co_flags` is an integer encoding a number of flags for the interpreter. - .. index:: - single: co_argcount (code object attribute) - single: co_code (code object attribute) - single: co_consts (code object attribute) - single: co_filename (code object attribute) - single: co_firstlineno (code object attribute) - single: co_flags (code object attribute) - single: co_lnotab (code object attribute) - single: co_name (code object attribute) - single: co_names (code object attribute) - single: co_nlocals (code object attribute) - single: co_stacksize (code object attribute) - single: co_varnames (code object attribute) - single: co_cellvars (code object attribute) - single: co_freevars (code object attribute) - .. index:: object: generator The following flag bits are defined for :attr:`co_flags`: bit ``0x04`` is set if |