-
-
Notifications
You must be signed in to change notification settings - Fork 782
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
Document the workflow for deprecating something in CPython. #1419
Comments
This process is documented in PEP-387's Making Incompatible Changes section.
Also there's a "See if there’s any feedback" step, discussion, typeshed, and a mention of |
PEP 387 is the policy, and indeed includes the minimum and recommendations about a longer deprecation period. However, I think it would be useful to have a practical guide in the devguide about the concrete steps (usually) needed, which don't belong in the PEP. The devguide instructions should of course refer to the PEP for the policy details. |
Hmm, I was expecting to find this info on the devguide, under Development Workflow. The PEP also doesn't say stuff like: go add this to the pending-removal-in .. file. So yeah I agree with Hugo, to have the detailed instructions in the devguide, and then add the |
IMO, a Process PEP should list the formal requirements, and the devguide should say how to meet them in practice. So, yes, please add this to Devguide! After that we can trim the PEP and have it link to devguide. |
What is the workflow for "PendingDeprecationWarning"?
|
AFAIK, we don't use PendingDeprecationWarning in CPython any more. |
Describe the enhancement or feature you'd like
Document the workflow on how to deprecate something in CPython.
Deprecating something in Python involves raising deprecation warning and then actually removing the code some time later (at least 2 release cycles). We don't have this process documented clearly.
Describe alternatives you've considered
Currently this is undocumented process, and each of us has to just figure it out somehow.
Additional context
Discussed on Discord core-workflow-and-bots channel, and now opening a ticket based on the discussions.
Basic process:
pending-removal-in....rst
fileOther info:
Note there is an open proposal for extending the removal of deprecated code to 5 years instead of 2.
The text was updated successfully, but these errors were encountered: