@@ -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