We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99e9157 commit 3a37c11Copy full SHA for 3a37c11
ompybind11/test.py
@@ -5,7 +5,15 @@
5
import ompybind11 # isort:skip
6
7
done = ompybind11.do(function=(lambda x: x + 40.0), x=2.0)
8
-print('ompybind11.do(function=(lambda x: x + 40.0), x=2.0) returned {}'.format(done))
+print('ompybind11.do(function=(lambda x: x + 40.0), x=2.0) returned {}'.format(
9
+ done))
10
+
11
+# This reproduces 1525
12
+#from concurrent.futures import ThreadPoolExecutor # isort:skip
13
+#with ThreadPoolExecutor(max_workers=2) as e:
14
+# e.submit(ompybind11.do, lambda x: x + 40.0, 2.0)
15
16
17
18
def f(x):
19
return x * x
0 commit comments