Skip to content

Commit

Permalink
Document Py_hash_t and Py_uhash_t types
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Nov 15, 2023
1 parent 3b6ab5f commit b3697b6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Doc/c-api/hash.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,22 @@ PyHash API

See also the :c:member:`PyTypeObject.tp_hash` member.

.. c:type:: Py_hash_t
Hash value type: signed integer.

.. versionadded:: 3.2

.. c:type:: Py_uhash_t
Hash value type: unsigned integer.

.. versionadded:: 3.2

.. c:function:: Py_hash_t PyHash_Double(double value)
Hash a C double number.
Return ``-1`` if *value* is not-a-number (NaN).
.. versionadded:: 3.13

0 comments on commit b3697b6

Please sign in to comment.