summaryrefslogtreecommitdiff
path: root/Include/memoryobject.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-21 20:46:33 +0100
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-21 20:46:33 +0100
commitce4a9da70535b4bb9048147b141f01004af2133d (patch)
tree853fa7484683a9c858f29bfab1320fb4baee5d98 /Include/memoryobject.h
parent0a3229de6b80cfa9e432ef5a9c72548569503075 (diff)
downloadcpython-git-ce4a9da70535b4bb9048147b141f01004af2133d.tar.gz
Issue #13411: memoryview objects are now hashable when the underlying object is hashable.
Diffstat (limited to 'Include/memoryobject.h')
-rw-r--r--Include/memoryobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/memoryobject.h b/Include/memoryobject.h
index 62ecbd6449..aff5d997f2 100644
--- a/Include/memoryobject.h
+++ b/Include/memoryobject.h
@@ -69,6 +69,7 @@ PyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(Py_buffer *info);
typedef struct {
PyObject_HEAD
Py_buffer view;
+ Py_hash_t hash;
} PyMemoryViewObject;
#endif