#7389: Fallback _point_morphism_class() has wrong signature
----------------------------------+-----------------------------------------
   Reporter:  wjp                 |       Owner:  AlexGhitza
       Type:  defect              |      Status:  new       
   Priority:  minor               |   Milestone:  sage-4.2.1
  Component:  algebraic geometry  |    Keywords:            
Work_issues:                      |      Author:            
   Reviewer:                      |      Merged:            
----------------------------------+-----------------------------------------
 The default {{{Scheme._point_morphism_class()}}} has a different signature
 than the versions in the subclasses of Scheme, causing a {{{TypeError}}}
 when it is called instead of the intended {{{NotImplementedError}}}.

 Small nonsensical example to trigger it in sage 4.2:

 {{{
 sage: S = Spec(ZZ)
 sage: f = S.identity_morphism()
 sage: from sage.schemes.generic.glue import GluedScheme
 sage: T = GluedScheme(f,f)
 sage: S.hom([1],T)
 TypeError: _point_morphism_class() takes exactly 1 non-keyword argument (3
 given)
 }}}

 The attached patch should fix it.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7389>
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to