Sorry, something went wrong.
| # define PyType_CheckExact(op) PyType_CheckExact(_PyObject_CAST(op)) | ||
| #endif | ||
|
|
||
| #if !defined(Py_LIMITED_API) |
There was a problem hiding this comment.
You can put the definition in Include/cpython/object.h, rather than use this #ifdef here. (See line 825.)
Sorry, something went wrong.
There was a problem hiding this comment.
See https://devguide.python.org/developer-workflow/c-api/index.html for details on this.
Sorry, something went wrong.
There was a problem hiding this comment.
Requesting changes for renaming to PyUnstable_Type_AssignVersionTag and moving to Include/cpython/object.h.
Sorry, something went wrong.
| # define PyType_CheckExact(op) PyType_CheckExact(_PyObject_CAST(op)) | ||
| #endif | ||
|
|
||
| #if !defined(Py_LIMITED_API) |
There was a problem hiding this comment.
See https://devguide.python.org/developer-workflow/c-api/index.html for details on this.
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. And if you don't make the requested changes, you will be put in the comfy chair! |
Sorry, something went wrong.
|
Thanks for the comments! I have made the requested changes; please review again. |
Sorry, something went wrong.
|
Thanks for making the requested changes! @carljm: please review the changes made to this pull request. |
Sorry, something went wrong.
There was a problem hiding this comment.
This looks good to me. @markshannon any concerns here?
Sorry, something went wrong.
There was a problem hiding this comment.
On second look here, I realized the updated name isn't quite what was requested; it should be PyUnstable_Type_AssignVersionTag (not just PyUnstable_AssignVersionTag).
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
|
Sorry about that! I fixed the name and merged latest main. I have made the requested changes; please review again. |
Sorry, something went wrong.
|
Thanks for making the requested changes! @carljm: please review the changes made to this pull request. |
Sorry, something went wrong.
|
Checked this in person with @markshannon and @ericsnowcurrently at the PyCon sprints; going ahead and merging. |
Sorry, something went wrong.
Add a new C-API function to eagerly assign a version tag to a PyTypeObject. Details in gh-103091.