#18503: ClasscallMetaclass doesn't work with six's with_metaclass
-------------------------+-------------------------------------------------
Reporter: jpswanson | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.8
Component: misc | Keywords: ClasscallMetaclass, six,
Merged in: | with_metaclass, metaclass, python3
Reviewers: | Authors: Josh Swanson
Work issues: | Report Upstream: N/A
Commit: | Branch:
Stopgaps: | Dependencies:
-------------------------+-------------------------------------------------
Title says it all. MWE:
{{{
from sage.misc.classcall_metaclass import ClasscallMetaclass
from six import with_metaclass
class foo(with_metaclass(ClasscallMetaclass)):
pass
}}}
throws an error
{{{
TypeError: type.__new__(metaclass) is not safe, use
sage.misc.classcall_metaclass.ClasscallMetaclass.__new__()
}}}
in six.pyc in with_metaclass(meta, *bases). If mixed Python 2 and Python 3
becomes a reality (e.g. #18492), this'll need to be fixed.
--
Ticket URL: <http://trac.sagemath.org/ticket/18503>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.