diff Doc/c-api/typeobj.rst @ 65494:e8969fb822fc

make hashes always the size of pointers; introduce Py_hash_t #9778
author Benjamin Peterson <benjamin@python.org>
date Sun, 17 Oct 2010 20:54:53 +0000
parents 521eac31a893
children 30eaca4735cb
line wrap: on
line diff
--- a/Doc/c-api/typeobj.rst	Sun Oct 17 20:17:41 2010 +0000
+++ b/Doc/c-api/typeobj.rst	Sun Oct 17 20:54:53 2010 +0000
@@ -306,10 +306,10 @@
    An optional pointer to a function that implements the built-in function
    :func:`hash`.
 
-   The signature is the same as for :c:func:`PyObject_Hash`; it must return a C
-   long.  The value ``-1`` should not be returned as a normal return value; when an
-   error occurs during the computation of the hash value, the function should set
-   an exception and return ``-1``.
+   The signature is the same as for :c:func:`PyObject_Hash`; it must return a
+   value of the type Py_hash_t.  The value ``-1`` should not be returned as a
+   normal return value; when an error occurs during the computation of the hash
+   value, the function should set an exception and return ``-1``.
 
    This field can be set explicitly to :c:func:`PyObject_HashNotImplemented` to
    block inheritance of the hash method from a parent type. This is interpreted