PEP 734: Fix the Example Code Under Interpreter.call_in_thread() (#3698)
This commit is contained in:
parent
b70f26b7c4
commit
2df99f332c
|
@ -417,7 +417,7 @@ Attributes and methods:
|
|||
``call_in_thread()`` is roughly equivalent to::
|
||||
|
||||
def task():
|
||||
interp.run(func)
|
||||
interp.call(func)
|
||||
t = threading.Thread(target=task)
|
||||
t.start()
|
||||
|
||||
|
|
Loading…
Reference in New Issue