Hi,

I want to rename a class, and deprecate the old class name, but it seems 
that this isn't so easy within the deprecation framework.

I tried:

sage: old_class = deprecated_function_alias(123456,new_class.__init__)

and some variations on this but they all gave the error

AttributeError: The name of this deprecated function can not be determined

Two ways which work are to create a dummy function and deprecate it, or 
create a dummy class and deprecate its' __init__ function, complete with 
dummy documentation for the doc tests. Is there an easier way?

Andrew

-- 
-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org



Reply via email to