-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Remove the Deprecated API in trace module #70257
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
Comments
A number of old methods in trace module were deprecated in bpo-10371. They should be removed in 3.6 release. |
This patch removes the deprecated apis from 3.6. After getting a review from one another core dev, I will commit this.
|
You seem to have forgotten to include a patch. |
Sorry for that. Here is the patch. |
New changeset 6f05bdc18661 by Senthil Kumaran in branch 'default': |
Thanks for the review, matrixise. I've submitted this change. |
I couldn't find exact references, but I think we've reached an agreement that we want to keep old APIs in the stdlib to make porting from Python 2 easier. So you might want to revert this :) |
Hi Berker, could you find the reference for it? It will be helpful to analyze. In this case, bpo-10371 made the change in (2010) of making the undocumented public methods to private internal and deprecated those old undocumented internal (but public) methods. It was a correct thing to do. Removal of the deprecated should have been done sooner. Otherwise, we are left with redundant methods (public and _private) in the same module serving no useful purpose. |
Sorry, I don't have much time investigate this further, but here is a few references from my bookmarks:
Another discussions about deprecation policy: bpo-24203 (old threading API), bpo-25486 (inspect.getargspec()) and bpo-26041 (platform.dist() and platform.linux_distribution()) If you want to keep the old API removed, it would be great to add a note in Doc/whatsnew/3.6.rst in addtion to the Misc/NEWS entry. |
Thanks for the pointers, Berker. That was very helpful and I will keep in mind when evaluating other deprecated apis. For the trace module, I will add this removal information in Doc/whatsnew/3.6.rst |
New changeset 715d8a739f3b by Senthil Kumaran in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: