]> granicus.if.org Git - python/commitdiff
Fix some comments
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 25 Aug 2007 17:01:41 +0000 (17:01 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 25 Aug 2007 17:01:41 +0000 (17:01 +0000)
Include/funcobject.h

index 2f64e52439e6c91e519fd5225361b6499e7019e1..798b257d07f916640fdbd3bbb69fc10d9a2235c8 100644 (file)
@@ -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 */