Hello,

I am trying to deprecate a function with an alias which seems to be very 
straightforward:
http://git.sagemath.org/sage.git/commit/?id=2080f3cf0365f4b568ce1129f3d0dc448fe80f11
but it results in the following error - what am I doing wrong?

Thank you!
Andrey


sage: lattice_polytope.cross_polytope(3)
3-d reflexive polytope in 3-d lattice M
sage: lattice_polytope.octahedron(3)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-927555e2c35c> in <module>()
----> 1 lattice_polytope.octahedron(Integer(3))

/home/novoselt/sage.git/local/lib/python2.7/site-packages/sage/misc/superseded.pyc
 
in __call__(self, *args, **kwds)
    203 
    204         deprecation(self.trac_number,
--> 205                     "%s is deprecated. Please use %s 
instead."%(self.__name__, other))
    206         if self.instance is None:
    207             return self.func(*args, **kwds)

/home/novoselt/sage.git/local/lib/python2.7/site-packages/sage/misc/lazy_attribute.so
 
in sage.misc.lazy_attribute._lazy_attribute.__get__ 
(sage/misc/lazy_attribute.c:1357)()

/home/novoselt/sage.git/local/lib/python2.7/site-packages/sage/misc/superseded.pyc
 
in __name__(self)
    183                     if val is self:
    184                         return key
--> 185         raise AttributeError, "The name of this deprecated function 
can not be determined"
    186 
    187     def __call__(self, *args, **kwds):

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

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to