I want to use python3 code in a python2 program, like this:
py3_code.py:
def add(a, b):
return a + b
py2_code.py:
from py3_code import add
add(1, 2)
I have tried to import a python3 .so in my python2 program, but I got an:
ImportError: undefined symbolL _PyFalseStruct
So how can I do this?