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

Function get_current_definition

Singular/dyn_modules/pyobject/pyobject.cc:654–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654PyObject* get_current_definition(const char* name) {
655 idhdl handle = ggetid(name);
656 if (!handle || (IDTYP(handle) != PythonInterpreter::id())) return NULL;
657 PythonCastStatic<PyObject*> value(IDDATA(handle));
658 return value;
659}
660
661/// getting stuff from python to Singular namespace
662void sync_contexts()

Callers 1

sync_contextsFunction · 0.85

Calls 1

ggetidFunction · 0.85

Tested by

no test coverage detected