-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
Improved deprecation and renaming of function and methods #7515
Comments
comment:2
Adressed William comments on sage-devel. |
Attachment: trac_7515_method_alias_decorator-fh.patch.gz |
comment:3
Updated patch to remark on sage-devel (i.e. just put the version of deprecation, without the date). Reday for review. |
comment:4
No problem with this one... Extremely useful :-) Do you think one should create a ticket saying "replace all the deprecation warning using deprecated_function_alias whenever possible" ? Firsdt, it would shorten Sage's code, plus everybody would see this is how we should set functions as deprecated instead of using the old method... I "copy" things very often in Sage's code, and if I am not working around an example of this, you can be sure I'd do it the other way :-) Positive review, thanks for your work ! Nathann |
comment:5
Replying to @nathanncohen:
This would be surely a good idea, but I'm not sure I wan't to volunteer to do this one right now. There are a lot of deprecated things in sage. Here is a rough evaluation:
So I'm opening the ticket but I currently don't accept it. Cheers, Florent |
comment:6
Perhaps it is possible to script it in emacs.... :-) |
Reviewer: Nathann Cohen |
comment:7
Looks good to me. |
Merged: sage-4.3.alpha1 |
Along the cleanup of combinat, a lot of methods and function get renamed. It is painfull to write backward compatibility aliases.
The patch given here should make it easier. I take also the chance to add a version optional argument to
deprecation
to store and print in which version of sage the method/function was deprecated.Here is an excerpt from the doc:
This also works for methods:
CC: @sagetrac-sage-combinat
Component: misc
Keywords: deprecation:
Author: Florent Hivert
Reviewer: Nathann Cohen
Merged: sage-4.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/7515
The text was updated successfully, but these errors were encountered: