#17559: Incorrect caching of variables' latex_name attribute
-----------------------------+------------------------
       Reporter:  wonder     |        Owner:
           Type:  defect     |       Status:  new
       Priority:  major      |    Milestone:  sage-6.5
      Component:  symbolics  |   Resolution:
       Keywords:             |    Merged in:
        Authors:             |    Reviewers:
Report Upstream:  N/A        |  Work issues:
         Branch:             |       Commit:
   Dependencies:             |     Stopgaps:
-----------------------------+------------------------

Comment (by kcrisman):

 According to the sage-support thread in question, perhaps the more recent
 bug is different
 {{{

 The problem above is caused by sage reusing
 "already existing variables" in the symbol function
 in sage/symbolic/ring.pyx. This "fixes" the above bug:

 diff --git a/src/sage/symbolic/ring.pyx b/src/sage/symbolic/ring.pyx
 index f87f622..6972018 100644
 --- a/src/sage/symbolic/ring.pyx
 +++ b/src/sage/symbolic/ring.pyx
 @@ -555,7 +555,7 @@ cdef class SymbolicRing(CommutativeRing):
          e = pynac_symbol_registry.get(name)

          # fast path to get an already existing variable
 -        if e is not None:
 +        if False: # e is not None:
              if domain is None:
                  if latex_name is None:
                      return e
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17559#comment:5>
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.

Reply via email to