gh-138045: Fix importing numpy in legacy subinterpreters by skipping … · python/cpython@6f371d0 · GitHub
Skip to content

Commit 6f371d0

Browse files
committed
gh-138045: Fix importing numpy in legacy subinterpreters by skipping switch to main interpreter when not needed
(singlephase == NULL) check in update_global_state_for_extension could be removed because it's only called with pointers to stack objects.
1 parent 61fc72a commit 6f371d0

2 files changed

Lines changed: 59 additions & 61 deletions

File tree

Lines changed: 3 additions & 0 deletions

Python/import.c

Lines changed: 56 additions & 61 deletions

0 commit comments

Comments
 (0)