How to pass Mojo function to Python in Python interop?
The question is how to pass Mojo function to Python in Python interop?
For example,
If I run this, it will show the following message:
Question originally posted by HKTonyLee on SO: https://stackoverflow.com/questions/77063677/how-to-pass-mojo-function-to-python-in-python-interop
For example,
If I run this, it will show the following message:
Question originally posted by HKTonyLee on SO: https://stackoverflow.com/questions/77063677/how-to-pass-mojo-function-to-python-in-python-interop
Stack Overflow
The question is how to pass Mojo function to Python in Python interop?
For example,
def callback():
return 5
def main():
Python.add_to_p...
For example,
This is main.mojo
from python.python import Pythondef callback():
return 5
def main():
Python.add_to_p...
