MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / mapping_subscript

Method mapping_subscript

src/Mod/Material/App/MaterialPyImp.cpp:678–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676}
677
678PyObject* MaterialPy::mapping_subscript(PyObject* self, PyObject* key)
679{
680 Py::Dict dict = static_cast<MaterialPy*>(self)->getProperties();
681 return Py::new_reference_to(dict.getItem(Py::Object(key)));
682}

Callers

nothing calls this directly

Calls 4

new_reference_toFunction · 0.85
ObjectClass · 0.50
getPropertiesMethod · 0.45
getItemMethod · 0.45

Tested by

no test coverage detected