PEP 734: Fix the Example Code Under Interpreter.call_in_thread() (#3698)

This commit is contained in:
Eric Snow 2024-02-29 16:29:05 -07:00 committed by GitHub
parent b70f26b7c4
commit 2df99f332c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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()