Skip to content

Commit fe0ce84

Browse files
Add an extra example.
1 parent d96ed19 commit fe0ce84

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/library/concurrent.interpreters.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,12 @@ Creating an interpreter and running code in it::
370370
print('spam!')
371371
"""))
372372

373+
def run(arg):
374+
return arg
375+
376+
res = interp.call(run, 'spam!')
377+
print(res)
378+
373379
def run():
374380
print('spam!')
375381

0 commit comments

Comments
 (0)