I’ve got a large legacy program that is written in OCaml, and I’d like to be able to call some OCaml functions from my Python program.
How can I do this the easiest way?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Directly, no. However, if you create a
CAPI for your Ocaml library, you can call that API via. Python’sctypesmodule or similar. Likewise, if you expose a network service for your OCaml application, Python can call into that.