diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-10-02 03:16:04 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-10-02 03:16:04 (GMT) |
commit | 7cafd2644a0ea4f62372a29820c870a866e2bd54 (patch) | |
tree | 8eaf381f3ccd0139ecd42b806f80a8691a7e6903 /Doc/reference | |
parent | aec5fd13979f7fac74a057d7a54c124354a715a2 (diff) | |
download | cpython-7cafd2644a0ea4f62372a29820c870a866e2bd54.zip cpython-7cafd2644a0ea4f62372a29820c870a866e2bd54.tar.gz cpython-7cafd2644a0ea4f62372a29820c870a866e2bd54.tar.bz2 |
Fix - issue10010 .. index:: position in the docs.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index ac94ef2..9d084cf 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 |