mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
merge 3.1 (#14509)
This commit is contained in:
commit
ca819c3c9d
2 changed files with 4 additions and 0 deletions
|
@ -7673,7 +7673,9 @@ unicode_hash(PyUnicodeObject *self)
|
|||
Py_UNICODE *p;
|
||||
Py_hash_t x;
|
||||
|
||||
#ifdef Py_DEBUG
|
||||
assert(_Py_HashSecret_Initialized);
|
||||
#endif
|
||||
if (self->hash != -1)
|
||||
return self->hash;
|
||||
len = Py_SIZE(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue