-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-141226: Deprecate PEP-456 support for embedders #141287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
46bd556
8d1ff1c
bc00153
07e32b0
077d808
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Pending removal in Python 3.17 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
|
||
| * :pep:`456` embedders support for the string hashing scheme definition. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -844,6 +844,18 @@ Deprecated | |
| New deprecations | ||
| ---------------- | ||
|
|
||
| * Build: | ||
|
|
||
| * Deprecate :pep:`456` support for providing an external definition | ||
| of the string hashing scheme. Removal is scheduled for Python 3.17. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason to rush this and not use the preferred five years?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Err.. I forgot the 5 years. I did a +2 version but I can definitely do a +5 years. However, note that I couldn't find any (public) code that was using this feature so I guessed we could drop this. Actually, as I told Victor, the maintenance cost on our side won't change at all because we already have all the infrastructure in place except for actually enabling this feature during the build (but all the code is already there and is straightforward). What is however hard to maintain are the docs for that (it's not easy to explain what needs to be done) and if users use this feature wrongly, it becomes a really bad footgun. I think "advanced users" (embedders) would rather patch the entire file instead of relying on this as our configure script doesn't even support this...
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I decided to push the deprecation to 3.19. That way, if people are actually using that feature by directly passing the CFLAG and manually link their own definition, we have time to add the correct configure support instead. |
||
|
|
||
| Previously, embedders could define :c:macro:`Py_HASH_ALGORITHM` to be | ||
| ``Py_HASH_EXTERNAL`` to indicate that the hashing scheme was provided | ||
| externally but this feature was undocumented, untested and most likely | ||
| unused. | ||
|
|
||
| (Contributed by Bénédikt Tran in :gh:`141226`.) | ||
|
|
||
| * CLI: | ||
|
|
||
| * Deprecate :option:`-b` and :option:`!-bb` command-line options | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Deprecate :pep:`456` support for providing an external definition | ||
| of the string hashing scheme. Removal is scheduled for Python 3.17. | ||
| Patch by Bénédikt Tran. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot, we'll also need to backport this fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you prefer that I open a separate PR for that? I can definitely do so for miss-ilington.