Skip to content

Is it possible to define a function usable in Python in Mojo? #1161

Locked Answered by paugier
paugier asked this question in Q&A

You must be logged in to vote

The answer is that there is not yet a good and robust mechanism to use Mojo from Python. It should be added but Mojo is not ready yet. There is an issue about adding this feature to Mojo roadmap #1423

In the mean time, one can use hacks using ctypes/cffi, but IMHO this can't be used "in production". Anyway, Mojo is not ready yet to be used "in production" outside Modular.

Replies: 6 comments 5 replies

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@rarebreed

You must be logged in to vote
2 replies
@paugier

@rarebreed

You must be logged in to vote
1 reply
@prabhuramachandran

You must be logged in to vote
1 reply
@paugier

You must be logged in to vote
0 replies
Answer selected by paugier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants