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::
|
``call_in_thread()`` is roughly equivalent to::
|
||||||
|
|
||||||
def task():
|
def task():
|
||||||
interp.run(func)
|
interp.call(func)
|
||||||
t = threading.Thread(target=task)
|
t = threading.Thread(target=task)
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue