| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Re-opening to trigger CI. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
It would be great if @vstinner could take a look as he has been dealing with this heavily recently. If he cannot review in a week or so, ping me again and I will merge :)
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. But to be able to merge this change, please move the news entry to Doc/whatsnew/3.10.rst. I suggest to backport this nice enhancement to Python 3.10.
Sorry, something went wrong.
Ok, moved to 3.10 in commit 6adc9e5. Thanks for reviewing, Pablo & Victor! 🙏🏻 |
Sorry, something went wrong.
Is this considered a bugfix? We are very close to RC 1 so I'm not sure we should risk regressions... |
Sorry, something went wrong.
I guess it depends on how you view it:
|
Sorry, something went wrong.
But this is something only happens in the stdlib, and those types are not going to change between beta 4 and RC 1. User types are not going to become magically heap types. I'm missing something? |
Sorry, something went wrong.
No, that's correct. If vectorcall support is not going to be added to any stdlib type in 3.10, there's no reason to backport this. |
Sorry, something went wrong.
|
Sounds like a backport is out of the question, then. |
Sorry, something went wrong.
Ah, I didn't notice that there are two months between the RC1 and the final versions. Ok, so this change should not be backported. |
Sorry, something went wrong.
Co-authored-by: Victor Stinner <vstinner@python.org>
There was a problem hiding this comment.
LGTM. Thanks, the NEWS entry is now crystal clear.
Sorry, something went wrong.
| .. warning:: | ||
|
|
||
| It is not recommended for :ref:`heap types <heap-types>` to implement | ||
| It is not recommended for :ref:`mutable heap types <heap-types>` to implement |
There was a problem hiding this comment.
Note: It's non-obvious what "mutable" means. It would be nice to add (in a separated PR) a new "Immutable types" section near https://docs.python.org/dev/c-api/typeobj.html#heap-types to explain the effects of the Py_TPFLAGS_IMMUTABLETYPE flag and explains that static types get this flag automatically.
Sorry, something went wrong.
There was a problem hiding this comment.
I agree. I'll see if I can find time for it. Thanks again for reviewing!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Py_TPFLAGS_HAVE_VECTORCALL and Py_TPFLAGS_METHOD_DESCRIPTOR
inheritance is now ruled by the Py_TPFLAGS_IMMUTABLETYPE flag instead
of the Py_TPFLAGS_HEAPTYPE flag.
https://bugs.python.org/issue43908