mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-95795: Move types.next_version_tag to PyInterpreterState (gh-102343)
Core static types will continue to use the global value. All other types will use the per-interpreter value. They all share the same range, where the global types use values < 2^16 and each interpreter uses values higher than that.
This commit is contained in:
parent
0dc8b50d33
commit
209a0a7655
4 changed files with 94 additions and 43 deletions
|
@ -112,6 +112,9 @@ extern PyTypeObject _PyExc_MemoryError;
|
|||
.func_state = { \
|
||||
.next_version = 1, \
|
||||
}, \
|
||||
.types = { \
|
||||
.next_version_tag = _Py_TYPE_BASE_VERSION_TAG, \
|
||||
}, \
|
||||
.static_objects = { \
|
||||
.singletons = { \
|
||||
._not_used = 1, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue