| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
The core change looks good. Mostly nitpicks from me.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| _Py_EnsureTstateNotNULL(tstate); | ||
| #endif | ||
| return tstate->interp; | ||
| #if !defined(Py_BUILD_CORE_MODULE) |
There was a problem hiding this comment.
Should this be
#if defined(HAVE_THREAD_LOCAL) && !defined(Py_BUILD_CORE_MODULE)
instead?
When testing the current main against mypyc, I'm seeing a new error message
In file included from /.../mypy/mypyc/lib-rt/misc_ops.c:1137:
In file included from /.../cpython/Include/internal/pycore_object.h:12:
In file included from /.../cpython/Include/internal/pycore_gc.h:12:
/.../cpython/Include/internal/pycore_pystate.h:213:12: error: use of undeclared identifier '_Py_tss_interp'
return _Py_tss_interp;
^
1 error generated.
Mypyc does use some of the internal headers. In particular
#define Py_BUILD_CORE
...
#include "internal/pycore_object.h"
Sorry, something went wrong.
There was a problem hiding this comment.
I guess it is because mypyc doesn't define HAVE_THREAD_LOCAL which is defined when python is built, does #140623 fixes it for you?
Sorry, something went wrong.
There was a problem hiding this comment.
I think we should just remove the check for HAVE_THREAD_LOCAL on line 92.
Sorry, something went wrong.
There was a problem hiding this comment.
I guess it is because mypyc doesn't define HAVE_THREAD_LOCAL which is defined when python is built, does #140623 fixes it for you?
Yes, that works.
I think we should just remove the check for HAVE_THREAD_LOCAL on line 92.
Guess, this would work too.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.