This commit is contained in:
2018-04-17 12:05:48 +02:00
parent 14edc0e745
commit 58a1260003
428 changed files with 41350 additions and 477 deletions
+14
View File
@@ -0,0 +1,14 @@
def call_cpython(module, function, args = []):
j=__getJep()
f = "function_" + j.hashCode()
eval_cpython("from " + module + " import " + function + " as " + f)
return j.invoke(f, args)
call_cpython("numpy", "ones", [(2,3)])