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

Method assign_to

Singular/dyn_modules/pyobject/pyobject.cc:189–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 Py_ssize_t size() const { return PyObject_Size(m_ptr); }
188
189 BOOLEAN assign_to(leftv result)
190 {
191 return (m_ptr? (m_ptr == Py_None? none_to(result): python_to(result)): TRUE);
192 }
193
194 void import_as(const char* name) const {
195 idhdl handle = enterid(name, 0, DEF_CMD,

Callers 7

python_evalFunction · 0.80
python_runFunction · 0.80
python_importFunction · 0.80
pyobject_Op1Function · 0.80
pyobject_Op2Function · 0.80
pyobject_Op3Function · 0.80
pyobject_OpMFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected