Skip to content

Commit a9612e3

Browse files
Update the Interpreter.call() docstring.
1 parent d173ec0 commit a9612e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/test/support/interpreters/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ def _call(self, callable, args, kwargs):
235235
def call(self, callable, /, *args, **kwargs):
236236
"""Call the object in the interpreter with given args/kwargs.
237237
238-
Only functions that take no arguments and have no closure
239-
are supported.
240-
241-
The return value is discarded.
238+
Nearly all callables, args, kwargs, and return values are
239+
supported. All "shareable" objects are supported, as are
240+
"stateless" functions (meaning non-closures that do not use
241+
any globals). This method will fall back to pickle.
242242
243243
If the callable raises an exception then the error display
244-
(including full traceback) is send back between the interpreters
244+
(including full traceback) is sent back between the interpreters
245245
and an ExecutionFailed exception is raised, much like what
246246
happens with Interpreter.exec().
247247
"""

0 commit comments

Comments
 (0)