From 2df99f332cf2796ceeecf715fcf470b32468cf1c Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Thu, 29 Feb 2024 16:29:05 -0700 Subject: [PATCH] PEP 734: Fix the Example Code Under Interpreter.call_in_thread() (#3698) --- peps/pep-0734.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0734.rst b/peps/pep-0734.rst index 39d62678e..b1f008605 100644 --- a/peps/pep-0734.rst +++ b/peps/pep-0734.rst @@ -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()