-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-133485: Use _interpreters.call() in InterpreterPoolExecutor #133957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
e4ee49f
ccc135c
da936a6
f1b932a
39c6768
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,10 @@ | |
def init(x): | ||
global INITIALIZER_STATUS | ||
INITIALIZER_STATUS = x | ||
# InterpreterPoolInitializerTest.test_initializer fails | ||
# if we don't have a LOAD_GLOBAL. (It could be any global.) | ||
# We will address this separately. | ||
INITIALIZER_STATUS | ||
Comment on lines
+23
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @markshannon, any ideas on why this is happening? It smells like a ceval bug, but it certainly could be something I've done wrong. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ping @markshannon There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There seem to be related changes in before:
ClosureVars(nonlocals={},
globals={'INITIALIZER_STATUS': 'uninitialized'},
builtins={}, unbound=set())
after:
ClosureVars(nonlocals={},
globals={},
builtins={}, unbound=set())
3 RESUME 0
5 LOAD_FAST_BORROW 0 (x)
STORE_GLOBAL 0 (INITIALIZER_STATUS)
LOAD_CONST 0 (None)
RETURN_VALUE
5 0 LOAD_FAST 0 (x)
3 STORE_GLOBAL 0 (INITIALIZER_STATUS)
6 LOAD_CONST 0 (None)
9 RETURN_VALUE |
||
|
||
def get_init_status(): | ||
return INITIALIZER_STATUS | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like
pickle
andcontextlib
are now unused in this file. Importingpickle
might be unnecessary when running only stateless functions?