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 — gh-95245: Document Py_TPFLAGS_PREHEADER by sergey-miryanov · Pull Request #135861 · python/cpython Conversation
|
|
@ZeroIntensity Thanks for review! Fixed (I hope :) |
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.
I think that if this is internal-only, it would be better to completely drop it from public headers rather than document it as such.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
(Don't do this yet, by the way. Let's come to a consensus in the issue.) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
As no comments from @iritkatriel or @markshannon I propose to make it internal as @ZeroIntensity suggested and rename it to @encukou WDYT? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Per PEP-387, removing (or renaming) it probablyneeds a deprecation cycle. Or is there evidence that no existing code uses it? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Since the It might be better to rename it to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
https://grep.app/search?q=Py_TPFLAGS_PREHEADER shows close to nothing of usage. Also, I'm downloading top-pypi packages to checks usage (as described here https://hugovk.dev/blog/2022/how-to-search-5000-python-projects/), will report as it finished. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
@markshannon WDYT about wordings in this PR? Can you suggest some improvements? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Searched over 13k+ packages: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
If it's public, it's best not to rename it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Petr Viktorin <[email protected]>
There was an error while loading. Please reload this page.
I think it's probably safe to rename it, at least for 3.14. Based on a code search, we're the only ones who use it (all the non-CPython mentions are people copying our headers). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Only recordclass uses it - #135861 (comment) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Peter Bierma <[email protected]>
|
@ZeroIntensity Please take a look. |
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.
Thanks, this mostly looks good.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Peter Bierma <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I'm not a huge fan of documenting things that should be private, but I think it's too late to move this to internal headers or rename it. We should consider deprecating this in 3.15.
@encukou Would you like to finish up your review?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It's hard to deprecate a macro, so adding warnings in docs look best. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks everyone! |
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.