Testing
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
def hello(name):
|
||||
print("Hello, bro! " + name)
|
||||
return "Idk, return value i guess"
|
||||
|
||||
def add(x, y):
|
||||
return x + y
|
||||
@@ -8,4 +8,6 @@ fn main() {
|
||||
let m = python::import("bro.py", &gil);
|
||||
|
||||
println!("{:?}", m.call("hello", vec![&"leo"]).extract::<String>());
|
||||
|
||||
println!("{:?}", m.call("add", vec![&10, &20]).extract::<i32>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user