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

Method getPyValue

src/App/PropertyStandard.cpp:869–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869long PropertyIntegerList::getPyValue(PyObject* item) const
870{
871 if (PyLong_Check(item)) {
872 return PyLong_AsLong(item);
873 }
874 std::string error = std::string("type in list must be int, not ");
875 error += item->ob_type->tp_name;
876 throw Base::TypeError(error);
877}
878
879void PropertyIntegerList::Save(Base::Writer& writer) const
880{

Callers

nothing calls this directly

Calls 3

asBooleanFunction · 0.85
setPyObjectMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected