MCPcopy Create free account
hub / github.com/Singular/Singular / from_module_import_all

Function from_module_import_all

Singular/dyn_modules/pyobject/pyobject.cc:470–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470void from_module_import_all(const char* module_name)
471{
472 char buffer[strlen(module_name) + 20];
473 snprintf (buffer,strlen(module_name) + 20, "from %s import *", module_name);
474 PyRun_SimpleString(buffer);
475}
476
477/// import python module and export identifiers in Singular namespace
478BOOLEAN python_import(leftv result, leftv value)

Callers 1

python_importFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected