diff options
Diffstat (limited to 'Objects/structseq.c')
-rw-r--r-- | Objects/structseq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c index a1b6dd6..c05bcde 100644 --- a/Objects/structseq.c +++ b/Objects/structseq.c @@ -73,6 +73,7 @@ PyStructSequence_New(PyTypeObject *type) obj = PyObject_GC_NewVar(PyStructSequence, type, size); if (obj == NULL) return NULL; + _PyTuple_RESET_HASH_CACHE(obj); /* Hack the size of the variable object, so invisible fields don't appear to Python code. */ Py_SET_SIZE(obj, vsize); |