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

Method getPyObject

src/Base/BaseClass.cpp:105–108  ·  view source on GitHub ↗

* This method returns the Python wrapper for a C++ object. It's in the responsibility of * the programmer to do the correct reference counting. Basically there are two ways how * to implement that: Either always return a new Python object then reference counting is * not a matter or return always the same Python object then the reference counter must be * incremented by one. However, it's

Source from the content-addressed store, hash-verified

103 * The default implementation returns 'None'.
104 */
105PyObject* BaseClass::getPyObject()
106{
107 Py_Return;
108}
109
110void BaseClass::setPyObject(PyObject* /*unused*/)
111{}

Callers 1

createPyObjectFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected