So in python native extension, is it possible to implement multiple modules in a single shared library? Then what would be the name of the shared library should be?
PyMODINIT_FUNC PyInit_foo(void) { PyModule_Create(...); }
PyMODINIT_FUNC PyInit_bar(void) { PyModule_Create(...); }
Should I name the library file foo.so
or bar.so
? and will import foo;
import just foo
or both foo
and bar
modules?