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

Skip to content

Commit f89854f

Browse files
committed
Issue 28751: Fix comments in code.h. (Contributed by Ned Batchelder).
1 parent 1149d93 commit f89854f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Include/code.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ typedef struct {
3232
PyObject *co_varnames; /* tuple of strings (local variable names) */
3333
PyObject *co_freevars; /* tuple of strings (free variable names) */
3434
PyObject *co_cellvars; /* tuple of strings (cell variable names) */
35-
/* The rest aren't used in either hash or comparisons, except for
36-
co_name (used in both) and co_firstlineno (used only in
37-
comparisons). This is done to preserve the name and line number
35+
/* The rest aren't used in either hash or comparisons, except for co_name,
36+
used in both. This is done to preserve the name and line number
3837
for tracebacks and debuggers; otherwise, constant de-duplication
3938
would collapse identical functions/lambdas defined on different lines.
4039
*/
@@ -45,7 +44,7 @@ typedef struct {
4544
Objects/lnotab_notes.txt for details. */
4645
void *co_zombieframe; /* for optimization only (see frameobject.c) */
4746
PyObject *co_weakreflist; /* to support weakrefs to code objects */
48-
/* Scratch space for extra data relating to the code object.__icc_nan
47+
/* Scratch space for extra data relating to the code object.
4948
Type is a void* to keep the format private in codeobject.c to force
5049
people to go through the proper APIs. */
5150
void *co_extra;

0 commit comments

Comments
 (0)