aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-25 17:01:41 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-25 17:01:41 +0000
commit8ced961ae699dbaf055971b2e04f014b6fc5bfd2 (patch)
tree2566d164357781363452f82dd10409a380d687bb /Include/funcobject.h
parentCosmetic fixes to make this work with Py3k (as well as with 2.5 still). (diff)
downloadcpython-8ced961ae699dbaf055971b2e04f014b6fc5bfd2.tar.gz
cpython-8ced961ae699dbaf055971b2e04f014b6fc5bfd2.tar.bz2
cpython-8ced961ae699dbaf055971b2e04f014b6fc5bfd2.zip
Fix some comments
Diffstat (limited to 'Include/funcobject.h')
-rw-r--r--Include/funcobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/funcobject.h b/Include/funcobject.h
index 2f64e52439e..798b257d07f 100644
--- a/Include/funcobject.h
+++ b/Include/funcobject.h
@@ -10,7 +10,7 @@ extern "C" {
/* Function objects and code objects should not be confused with each other:
*
* Function objects are created by the execution of the 'def' statement.
- * They reference a code object in their func_code attribute, which is a
+ * They reference a code object in their __code__ attribute, which is a
* purely syntactic object, i.e. nothing more than a compiled version of some
* source code lines. There is one code object per source code "fragment",
* but each code object can be referenced by zero or many function objects
@@ -20,7 +20,7 @@ extern "C" {
typedef struct {
PyObject_HEAD
- PyObject *func_code; /* A code object */
+ PyObject *func_code; /* A code object, the __code__ attribute */
PyObject *func_globals; /* A dictionary (other mappings won't do) */
PyObject *func_defaults; /* NULL or a tuple */
PyObject *func_kwdefaults; /* NULL or a dict */