MCPcopy Create free account
hub / github.com/commontk/CTK / isUserDefinedFunction

Method isUserDefinedFunction

Libs/Scripting/Python/Widgets/ctkPythonConsole.cpp:198–201  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

196
197//---------------------------------------------------------------------------
198bool ctkPythonConsoleCompleterPrivate::isUserDefinedFunction(const QString &pythonFunctionName)
199{
200 return this->PythonManager.pythonAttributes(pythonFunctionName).contains("__call__");
201}
202
203//---------------------------------------------------------------------------
204bool ctkPythonConsoleCompleterPrivate::isBuiltInFunction(const QString &pythonFunctionName)

Callers 1

cursorOffsetMethod · 0.80

Calls 2

pythonAttributesMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected