> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>
On Sun, Dec 19, 2010 at 06:43:26PM -0500, David Roe wrote:
> Cython classes by default don't have a __dict__ (which is why you're
> seeing the error below). Maybe the deprecated_function_alias should
> be modified to allow for deprecated aliases in cython classes.
> David
>
> On Sun, Dec 19, 2010 at 16:42, Rob Beezer <goo...@beezer.cotse.net> wrote:
> > I'm trying to use deprecated_function_alias() from sage/misc/misc.py
> > in a *.pyx file, specifically, matrix2.pyx.
> >
> > Should this be possible? �I don't see anywhere in the source where
> > this is used in a *.pyx file.
> >
> > Sage rebuilds fine, but complains on startup while importing. �Tail of
> > the errors reported follows below. �Maybe I just need to do the
> > deprecation the old-fashioned way, but I'd prefer to use the
> > standardized function designed for this purpose.
I'm the culprit.
> > � 2004 � � � � self.__doc__ = func.__doc__
> > -> 2005 � � � � self.__dict__.update(func.__dict__)
> > � 2006 � � � � self.func = func
The offending line should probably be guarded by a
try:
...
except:
or even removed: it is not tested and I don't see any use of it in sage. Is
there one ?
Cheersm
Florent