| 179 | //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 180 | |
| 181 | PyObjectPtr PyLogger::CallPythonMethodWithTuple(const char* method_name, const PyObjectPtr& tuple) |
| 182 | { |
| 183 | PyObjectPtr method = PyObject_GetAttrString(logger_pyclass.get(), method_name); |
| 184 | assert(method); // This should not fail as the constructor has checked the type of logger_pyclass. |
| 185 | |
| 186 | return PyObject_CallObject(method.get(), tuple.get()); |
| 187 | } |
| 188 | } // namespace JSBSim |