gonsolo
(Andreas Wendleder)
1
I try to call Swift from Python which doesn't work because of name mangling.
bla.swift compiled with swiftc -emit-library to libbla.so:
public func bla() {
print("Bla")
}
bla.py:
import ctypes
lib = ctypes.cdll.LoadLibrary("./libbla.so")
#print(lib.$s3blaAAyyF) <- doesn't work because of the dollar sign
What is the preferred way to do this?
gonsolo
(Andreas Wendleder)
3
Cool, I haven't seen this. Thanks.