GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make Py_TPFLAGS_HAVE_VERSION_TAG no-op by encukou · Pull Request #27260 · python/cpython Conversation
| |||||||||||||||
|
How this flag was added and when it was turned into a no-op? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Py_TPFLAGS_HAVE_* flags have been historically added whenever a new field was added to the type struct, to make it possible to use extensions compiled for earlier Python versions (where the fields aren't present). This PR turns both into no-ops, as they should be. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -0,0 +1,4 @@ | |||
| The ``Py_TPFLAGS_HAVE_VERSION_TAG`` type flag now does nothing. The | |||
| ``Py_TPFLAGS_HAVE_AM_SEND`` flag (which was added in 3.10) is removed. Both | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Py_TPFLAGS_HAVE_AM_SENDflag (which was added in 3.10) is removed.
there aren't many users use it?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
If there any users of it, they are using the 3.10 betas. Requiring that they remove the flag is fair game.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-27306 is a backport of this pull request to the 3.10 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…RSION_TAG no-op (pythonGH-27260) * Remove code that checks Py_TPFLAGS_HAVE_VERSION_TAG The field is always present in the type struct, as explained in the added comment. * Remove Py_TPFLAGS_HAVE_AM_SEND The flag is not needed, and since it was added in 3.10 it can be removed now. (cherry picked from commit a4760cc) Co-authored-by: Petr Viktorin <[email protected]>
…RSION_TAG no-op (GH-27260) (GH-27306) * Remove code that checks Py_TPFLAGS_HAVE_VERSION_TAG The field is always present in the type struct, as explained in the added comment. * Remove Py_TPFLAGS_HAVE_AM_SEND The flag is not needed, and since it was added in 3.10 it can be removed now. (cherry picked from commit a4760cc) Co-authored-by: Petr Viktorin <[email protected]>
|
Thanks for this fix @encukou. The rationale for Py_TPFLAGS_HAVE_AM_SEND was unclear. Now it's well defined, it's useless :-D |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.