You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unicodeobject.c doesn't compile when defined EXPERIMENTAL_ISOLATED_SUBINTERPRETERS, variable "interned" not found #90988
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2022-02-23.06:12:09.073>labels= ['expert-subinterpreters', 'build', '3.10']
title='unicodeobject.c doesn\'t compile when defined EXPERIMENTAL_ISOLATED_SUBINTERPRETERS, variable "interned" not found'updated_at=<Date2022-03-03.11:29:31.887>user='https://bugs.python.org/moytrage'
Compiled under MSVC 2019 with define EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
Got compilation error of file Objects/unicodeobject.c at line 15931, about undefined variable "interned", it is function _PyUnicode_ClearInterned(), uncompilable code is "if (interned == NULL) {".
This happens because when EXPERIMENTAL_ISOLATED_SUBINTERPRETERS is defined then INTERNED_STRINGS is undefined hence global variable "static PyObject *interned = NULL;" is not created, and _PyUnicode_ClearInterned() uses this global variable "interned".
For reference attaching my version of "unicodeobject.c" which has compilation error at line 15931.
Activity
moytrage commentedon Feb 23, 2022
Downloaded https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tar.xz
Compiled under MSVC 2019 with define EXPERIMENTAL_ISOLATED_SUBINTERPRETERS
Got compilation error of file Objects/unicodeobject.c at line 15931, about undefined variable "interned", it is function _PyUnicode_ClearInterned(), uncompilable code is "if (interned == NULL) {".
This happens because when EXPERIMENTAL_ISOLATED_SUBINTERPRETERS is defined then INTERNED_STRINGS is undefined hence global variable "static PyObject *interned = NULL;" is not created, and _PyUnicode_ClearInterned() uses this global variable "interned".
For reference attaching my version of "unicodeobject.c" which has compilation error at line 15931.
vstinner commentedon Mar 3, 2022
This build flag is experimental and unsupported. If you care, you should target Python 3.11 which is currently under development.
kumaraditya303 commentedon Jul 10, 2022
Closing as EXPERIMENTAL_ISOLATED_SUBINTERPRETERS was removed in #93185