diff options
author | Guido van Rossum <guido@python.org> | 2006-08-21 23:36:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-21 23:36:26 (GMT) |
commit | 389381564cfa936c8e50bc51dc53b55cba857652 (patch) | |
tree | 7259a38e0d6c06e5519276336ed26a593166de1d /Include/object.h | |
parent | 5431ee4a499e173c5638297de30a965ed2206c66 (diff) | |
download | cpython-389381564cfa936c8e50bc51dc53b55cba857652.zip cpython-389381564cfa936c8e50bc51dc53b55cba857652.tar.gz cpython-389381564cfa936c8e50bc51dc53b55cba857652.tar.bz2 |
Change the way __hash__ is inherited; when __eq__ or __cmp__ is overridden
but __hash__ is not, set __hash__ explicitly to None (and tp_hash to NULL).
All unit tests pass now!
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 1f1aeaa..ab42f8a 100644 --- a/Include/object.h +++ b/Include/object.h @@ -368,6 +368,7 @@ PyAPI_FUNC(PyObject *) _PyType_Lookup(PyTypeObject *, PyObject *); /* Generic operations on objects */ PyAPI_FUNC(int) PyObject_Print(PyObject *, FILE *, int); +PyAPI_FUNC(void) _Py_Break(void); PyAPI_FUNC(void) _PyObject_Dump(PyObject *); PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *); PyAPI_FUNC(PyObject *) _PyObject_Str(PyObject *); |