summaryrefslogtreecommitdiff
path: root/Include/code.h
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-02-01 13:59:22 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-02-01 13:59:22 +0000
commitc008a176afdef8cb7afc0e48a8fb306f986964e8 (patch)
tree9cfaabad2089cf789a0ea4f0a17420cd28bc16a3 /Include/code.h
parentf02e0aaafd2476948047f0ce904af947f02d18ea (diff)
downloadcpython-git-c008a176afdef8cb7afc0e48a8fb306f986964e8.tar.gz
Issue #1717, continued: remove PyObject_Compare and Py_CmpToRich declarations
from object.h; don't inherit tp_compare slot on subclasses; and raise TypeError when initializing a type that has a nonzero tp_compare slot. Fix up comparison-related comments in object.c and code.h.
Diffstat (limited to 'Include/code.h')
-rw-r--r--Include/code.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/code.h b/Include/code.h
index 40cce180f5..d738d8dd83 100644
--- a/Include/code.h
+++ b/Include/code.h
@@ -20,7 +20,7 @@ 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 doesn't count for hash/cmp */
+ /* The rest doesn't count for hash or comparisons */
PyObject *co_filename; /* unicode (where it was loaded from) */
PyObject *co_name; /* unicode (name, for reference) */
int co_firstlineno; /* first source line number */