diff options
author | Raymond Hettinger <python@rcn.com> | 2016-11-21 22:24:51 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-11-21 22:24:51 (GMT) |
commit | 4ea37703acae519fcf0bcd23a6821e2972993789 (patch) | |
tree | 9394a3b599bd8d2762248f4f2bc062f86cc806d7 /Include | |
parent | 43dfe2b386eee1d7ca37bc5d9d51e30d3dfa353f (diff) | |
parent | f89854f89c7d4f625ad8d35783a30b7a48bd0e76 (diff) | |
download | cpython-4ea37703acae519fcf0bcd23a6821e2972993789.zip cpython-4ea37703acae519fcf0bcd23a6821e2972993789.tar.gz cpython-4ea37703acae519fcf0bcd23a6821e2972993789.tar.bz2 |
Merge
Diffstat (limited to 'Include')
-rw-r--r-- | Include/code.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Include/code.h b/Include/code.h index 0619029..c5fce3c 100644 --- a/Include/code.h +++ b/Include/code.h @@ -32,9 +32,8 @@ typedef struct { PyObject *co_varnames; /* tuple of strings (local variable names) */ PyObject *co_freevars; /* tuple of strings (free variable names) */ PyObject *co_cellvars; /* tuple of strings (cell variable names) */ - /* The rest aren't used in either hash or comparisons, except for - co_name (used in both) and co_firstlineno (used only in - comparisons). This is done to preserve the name and line number + /* The rest aren't used in either hash or comparisons, except for co_name, + used in both. This is done to preserve the name and line number for tracebacks and debuggers; otherwise, constant de-duplication would collapse identical functions/lambdas defined on different lines. */ @@ -45,7 +44,7 @@ typedef struct { Objects/lnotab_notes.txt for details. */ void *co_zombieframe; /* for optimization only (see frameobject.c) */ PyObject *co_weakreflist; /* to support weakrefs to code objects */ - /* Scratch space for extra data relating to the code object.__icc_nan + /* Scratch space for extra data relating to the code object. Type is a void* to keep the format private in codeobject.c to force people to go through the proper APIs. */ void *co_extra; |