Skip to content

bpo-31890: define METH_STACKLESS #4159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 2, 2017

Conversation

akruis
Copy link

@akruis akruis commented Oct 28, 2017

Add METH_STACKLESS to prevent future collisions.

https://bugs.python.org/issue31890

Add METH_STACKLESS to prevent future collisions.
akruis pushed a commit to akruis/cpython that referenced this pull request Oct 29, 2017
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

Since we already have Py_TPFLAGS_HAVE_STACKLESS_EXTENSION, I think that it's ok to add METH_STACKLESS as well.

I just proposed to remove the end of your comment ;-)

@@ -89,7 +89,16 @@ PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *,

#ifndef Py_LIMITED_API
#define METH_FASTCALL 0x0080
#endif

/* This bit is preserved for Stackless Python, next after this is 0x0200 */
Copy link
Member

Choose a reason for hiding this comment

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

IMHO you can remove ", next after this is 0x0200".

Changed comment as suggested by Victor.
@vstinner vstinner merged commit 9e33973 into python:master Nov 2, 2017
embray pushed a commit to embray/cpython that referenced this pull request Nov 9, 2017
Add METH_STACKLESS to prevent future collisions.
@akruis akruis deleted the bpo31890_add_meth_stackless branch January 12, 2019 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants