I am guessing we should something more fundamental in 
sage/structure/sage_object.pyx
since we are dealing with SageObject classes.
But I am not sure how to do the 
__new__ = object.__new__ in cython.

François

> On 7/12/2016, at 15:25, than...@debian.org wrote:
> 
> When setting __new__ = object.__new__() for UnknownClass it goes on to the 
> next similar error:
> 
>    ...
>    File 
> "<BUILDDIR>/usr/lib/python2.7/dist-packages/sage/categories/sets_cat.py", 
> line 2752, in <module>
>      cartesian_product = CartesianProductFunctor()
>    File "sage/misc/classcall_metaclass.pyx", line 330, in 
> sage.misc.classcall_metaclass.ClasscallMetaclass.__call__ 
> (<CYTHONIZED>/sage/misc/classcall_metaclass.c:1413)
>    File "sage/misc/cachefunc.pyx", line 1059, in 
> sage.misc.cachefunc.CachedFunction.__call__ 
> (<CYTHONIZED>/sage/misc/cachefunc.c:6080)
>    File 
> "<BUILDDIR>/usr/lib/python2.7/dist-packages/sage/structure/unique_representation.py",
>  line 1022, in __classcall__
>      instance = typecall(cls, *args, **options)
>    File "sage/misc/classcall_metaclass.pyx", line 497, in 
> sage.misc.classcall_metaclass.typecall 
> (<CYTHONIZED>/sage/misc/classcall_metaclass.c:1862)
>  TypeError: 
> sage.misc.fast_methods.WithEqualityById.__new__(CartesianProductFunctor) is 
> not safe, use sage.categories.functor.Functor.__new__()

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to