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

Method isBuiltInFunction

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

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

Source from the content-addressed store, hash-verified

202
203//---------------------------------------------------------------------------
204bool ctkPythonConsoleCompleterPrivate::isBuiltInFunction(const QString &pythonFunctionName)
205{
206 return this->PythonManager.pythonAttributes(pythonFunctionName, QLatin1String("__main__.__builtins__")).contains("__call__");
207}
208
209//---------------------------------------------------------------------------
210int ctkPythonConsoleCompleterPrivate::parameterCountBuiltInFunction(const QString& pythonFunctionName)

Callers 1

cursorOffsetMethod · 0.80

Calls 2

pythonAttributesMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected