mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Fix type of hash function.
This commit is contained in:
parent
646fdd6c61
commit
d49bf5e8a5
1 changed files with 1 additions and 1 deletions
|
|
@ -2478,7 +2478,7 @@ static PyBufferProcs PyCData_as_buffer = {
|
|||
/*
|
||||
* CData objects are mutable, so they cannot be hashable!
|
||||
*/
|
||||
static long
|
||||
static Py_hash_t
|
||||
PyCData_nohash(PyObject *self)
|
||||
{
|
||||
PyErr_SetString(PyExc_TypeError, "unhashable type");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue