#10906: lazy import can break unique representation
-----------------------+----------------------------------------------------
Reporter: nthiery | Owner: jason
Type: defect | Status: new
Priority: major | Milestone:
Component: misc | Keywords: lazy import, unique representation
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------+----------------------------------------------------
A fun experiment: edit sage/categories/semigroups, and add the following
lines at the beginning:
{{{
from sage.misc.lazy_import import lazy_import
lazy_import('sage.rings.rational_field', 'QQ')
}}}
Then restart sage:
{{{
sage: sage.categories.semigroups.QQ is QQ
False
}}}
This bit me hard, because such a lazy_import indirectly changed the base
ring of a matrix to be equal to QQ but not identical, which in turn broke
all the linear algebra: I was getting a matrix space over QQ whose
elements were generic matrices.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10906>
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.