mirror of
https://github.com/python/cpython.git
synced 2025-10-05 06:31:48 +00:00
merge 2.6
This commit is contained in:
commit
9d7601fcea
4 changed files with 14 additions and 4 deletions
|
@ -6538,6 +6538,7 @@ unicode_hash(PyUnicodeObject *self)
|
|||
register Py_UNICODE *p;
|
||||
register long x;
|
||||
|
||||
assert(_Py_HashSecret_Initialized);
|
||||
if (self->hash != -1)
|
||||
return self->hash;
|
||||
len = PyUnicode_GET_SIZE(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue