Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion mysqlshdk/scripting/python_array_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ static PyTypeObject PyShListObjectType = {
#if PY_VERSION_HEX >= 0x03080000
,
0, // tp_vectorcall
0 // tp_print
#endif
};

Expand Down
2 changes: 2 additions & 0 deletions mysqlshdk/scripting/python_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,9 @@ Python_context::Python_context(bool redirect_stdio) : _types(this) {
// Stores the main thread state
_main_thread_state = PyThreadState_Get();

#if PY_VERSION_HEX < 0x03090000
PyEval_InitThreads();
#endif
PyEval_SaveThread();

_types.init();
Expand Down
3 changes: 1 addition & 2 deletions mysqlshdk/scripting/python_function_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ static PyTypeObject PyShFuncObjectType = {
#endif
#if PY_VERSION_HEX >= 0x03080000
,
0, // tp_vectorcall
0 // tp_print
0 // tp_vectorcall
#endif
};

Expand Down
6 changes: 2 additions & 4 deletions mysqlshdk/scripting/python_map_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ static PyTypeObject Key_iterator_type = {
#endif
#if PY_VERSION_HEX >= 0x03080000
,
0, // tp_vectorcall
0 // tp_print
0 // tp_vectorcall
#endif
};

Expand Down Expand Up @@ -548,8 +547,7 @@ static PyTypeObject PyShDictObjectType = {
#endif
#if PY_VERSION_HEX >= 0x03080000
,
0, // tp_vectorcall
0 // tp_print
0 // tp_vectorcall
#endif
};

Expand Down
9 changes: 3 additions & 6 deletions mysqlshdk/scripting/python_object_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ static PyTypeObject PyShMethodObjectType = {
#endif
#if PY_VERSION_HEX >= 0x03080000
,
0, // tp_vectorcall
0 // tp_print
0 // tp_vectorcall
#endif
};

Expand Down Expand Up @@ -644,8 +643,7 @@ static PyTypeObject PyShObjObjectType = {
#endif
#if PY_VERSION_HEX >= 0x03080000
,
0, // tp_vectorcall
0 // tp_print
0 // tp_vectorcall
#endif
};

Expand Down Expand Up @@ -736,8 +734,7 @@ static PyTypeObject PyShObjIndexedObjectType = {
#endif
#if PY_VERSION_HEX >= 0x03080000
,
0, // tp_vectorcall
0 // tp_print
0 // tp_vectorcall
#endif
};

Expand Down