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

Method representation

src/Base/TypePyImp.cpp:35–40  ·  view source on GitHub ↗

returns a string which represent the object e.g. when printed in python

Source from the content-addressed store, hash-verified

33
34// returns a string which represent the object e.g. when printed in python
35std::string TypePy::representation() const
36{
37 std::stringstream str;
38 str << "<class '" << getBaseTypePtr()->getName() << "'>";
39 return str.str();
40}
41
42PyObject* TypePy::fromName(PyObject* args)
43{

Callers

nothing calls this directly

Calls 2

getNameMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected