| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…hecking of it presence
|
@markshannon Please take a look. |
Sorry, something went wrong.
|
As the person who reported #134786: I would suggest making the documentation more explicit and replacing should with must here, especially since the code now errors out if Py_TPFLAGS_HAVE_GC is not set. |
Sorry, something went wrong.
+1 Additionally, this PR puts this into a WhatsNew entry for 3.15. This is not a new thing, this is a documentation fix + fix for the runtime to not allow these invalid types to be created. So I think the added whatsnew is misleading. |
Sorry, something went wrong.
|
I'm not sure if we should support Py_TPFLAGS_MANAGED_DICT without Py_TPFLAGS_HAVE_GC, because Py_TPFLAGS_MANAGED_DICT implies Py_TPFLAGS_HAVE_GC. However, I have added it, though, to confirm that it is doable. I think the current version needs some updates and clarification in the docs. First, though, I would like to get some feedback on the overall approach. Is this the right way to do after all? Please take a look if someone interested. |
Sorry, something went wrong.
|
@markshannon Please take a look. |
Sorry, something went wrong.
There was a problem hiding this comment.
Maybe we should rename this PR?
Sorry, something went wrong.
I forgot to apply changes :( |
Sorry, something went wrong.
|
Once the remaining comment has been addressed, I'm happy to merge this. For the record, the requirements may change in the future: |
Sorry, something went wrong.
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
I had such commit 42c0932, we decided to revert it for now. Maybe we should open a separate PR for it? |
Sorry, something went wrong.
|
If it isn't too much work, it is worth adding a test for this. |
Sorry, something went wrong.
|
@kumaraditya303 I have added test. |
Sorry, something went wrong.
|
@markshannon @kumaraditya303 It is ready to review, could you please take a look. |
Sorry, something went wrong.
|
Thanks all! |
Sorry, something went wrong.
…PFLAGS_MANAGED_DICT` is used without `Py_TPFLAGS_HAVE_GC` set (python#135863)
| Back | FazBrowse Home | New Git URL |
According to discussion Py_TPFLAGS_MANAGED_WEAKREF and Py_TPFLAGS_MANAGED_DICT must be used only if Py_TPFLAGS_HAVE_GC is set.
📚 Documentation preview 📚: https://cpython-previews--135863.org.readthedocs.build/