The best solution that I found is to write wrappers like the following:
def Tableaux_n(*args, **kargs):
"""
EXAMPLES::
sage: sage.combinat.tableau.Tableaux_n(3)
doctest:1: DeprecationWarning: this class is deprecated. Use
Tableaux_size instead
See http://trac.sage
OK, so the problem seems to be that I am trying to deprecate an internal
class. So,
old_class = deprecated_function_alias(123456,new_class)
does not work. I also can't use
old_class =
deprecated_function_alias(123456,sage.combinat.my_module.new_class)
inside sage.combinat.my_module as this cr
Thanks Simon. Actually, this was the first thing that I tried:
SemistandardTableaux_nmu=deprecated_function_alias(9265,SemistandardTableaux_size_evaluation)
but it leads to the error:
sage: sage.combinat.tableau.SemistandardTableaux_nmu(4,[2,1])
ERROR: An unexpected error occurred while tokenizi
PS:
On 2012-08-15, Simon King wrote:
> sage: B = deprecated_function_alias(12345, A)
> sage: B()
> ...:1: DeprecationWarning: B is deprecated. Please use A instead.
> See http://trac.sagemath.org/12345 for details.
> #!/usr/bin/env python
><__main__.A instance at 0x449d098>
But I guess the cav
Hi Andrew,
On 2012-08-15, Andrew Mathas wrote:
> I tried:
>
> sage: old_class = deprecated_function_alias(123456,new_class.__init__)
>
> and some variations on this but they all gave the error
Classes are callable, and apparently one wants to deprecate the callable.
Hence, the following seems to