Skip to content

Update python_embed.c#116

Merged
em92 merged 3 commits into
MinoMino:masterfrom
mgaertne:patch-5
Aug 13, 2023
Merged

Update python_embed.c#116
em92 merged 3 commits into
MinoMino:masterfrom
mgaertne:patch-5

Conversation

@mgaertne

Copy link
Copy Markdown
Contributor

fixed two things that changed with python version 3.7:

  • PyUnicode_AsUTF8 now returns a const char* rather than just a char*
  • PyEval_InitThreads() does nothing, since it's now called in Py_Initialize(), and will be removed with python version 3.11

fixed two things that changed with python version 3.7:
- PyUnicode_AsUTF8 now returns a const char* rather than just a char*
- PyEval_InitThreads() does nothing, since it's now called in Py_Initialize(), and will be removed with python version 3.11
Comment thread python_embed.c Outdated
static PyObject* PyMinqlx_ReplaceItems(PyObject* self, PyObject* args) {
PyObject *arg1, *arg2 ;
int entity_id = 0, item_id = 0;
#if PY_MINOR_VERSION < 7

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True statement for Python 3.5, 3.6, 4.0, 4.1 .. 4.6.
Suggesting to use PY_VERSION_HEX

Comment thread python_embed.c Outdated
Comment on lines +1922 to +1924
#if PY_MINOR_VERSION < 7
PyEval_InitThreads();
#endif

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to using PY_VERSION_HEX. Hope it's self-explanatory enough
@em92

em92 commented May 8, 2023

Copy link
Copy Markdown
Collaborator

Hi, Markus! Recently pushed github workflow for automatic testing, if minqlx does compile. Could you please rebase your branch on newest master?

@mgaertne

Copy link
Copy Markdown
Contributor Author

Done. The github actions did not trigger, though, unfortunately. :/

@em92

em92 commented May 13, 2023

Copy link
Copy Markdown
Collaborator

Done. The github actions did not trigger, though, unfortunately. :/

I think you forgot to push commits

@mgaertne

Copy link
Copy Markdown
Contributor Author

Now I think it worked.

@em92 em92 merged commit fbdd915 into MinoMino:master Aug 13, 2023
@em92

em92 commented Aug 13, 2023

Copy link
Copy Markdown
Collaborator

I thought I merged it long time ago. :D

@mgaertne mgaertne deleted the patch-5 branch August 15, 2023 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants