#7516: bug in pickling quotient module over pid
------------------------------+---------------------------------------------
   Reporter:  was             |       Owner:  was     
       Type:  defect          |      Status:  new     
   Priority:  major           |   Milestone:  sage-4.3
  Component:  linear algebra  |    Keywords:          
Work_issues:                  |      Author:          
   Upstream:  N/A             |    Reviewer:          
     Merged:                  |  
------------------------------+---------------------------------------------
 This is from the "report a problem" link in the notebook:

 If you have a vector space, that is a quotient of a subspace of
 another vector space, then after coercing elements into it, something
 goes wrong in (un)pickling it.

 {{{
 sage: V = VectorSpace(QQ, 2)
 sage: W = V.subspace([V([1,1])])
 sage: Z = W.subspace([])
 sage: WmodZ = W / Z
 sage: WmodZ(W(0))
 (0)
 sage: loads(dumps(WmodZ))
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /home/bosman/sage/<ipython console> in <module>()

 /home/bosman/sage-4.2-linux-Ubuntu_9.04-i686-Linux/local/lib/python2.6
 /site-packages/sage/structure/sage_object.so
 in sage.structure.sage_object.loads
 (sage/structure/sage_object.c:8769)()

 /home/bosman/sage-4.2-linux-Ubuntu_9.04-i686-Linux/local/lib/python2.6
 /site-packages/sage/modules/free_module.pyc
 in __hash__(self)
   4576             True
   4577         """
 -> 4578         return hash(self.__basis)
   4579
   4580     def construction(self):

 AttributeError: 'FreeModule_submodule_field' object has no attribute
 '_FreeModule_submodule_with_basis_pid__basis'
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7516>
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=.


Reply via email to