#17694: zero vs zero_element / one vs one_element
-------------------------------------+-------------------------------------
       Reporter:  vdelecroix         |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.5
      Component:  algebra            |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Vincent Delecroix  |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vdelecroix/17694                 |  c0a0bbbe64c8524c98c88f342c62cc426c604260
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by ncohen):

 Hello,

 There are some `zero_element` that you rename to `zero` without adding a
 deprecated copy. I wondered if perhaps the deprecated copy was inherited,
 but found something weird:

 {{{
 sage: L = LazyPowerSeriesRing(QQ)
 sage: L.zero # zero_element appears when you press tab
 L.zero          L.zero_element  L.zero_ideal
 sage: L.zero_element()
 ...
 AttributeError: 'LazyPowerSeriesRing' object has no attribute
 'zero_element'
 }}}

 So it seems that this function, for instance, has no deprecated
 `zero_element`. And also that the function still appears in the tab
 expansion, which I cannot explain.

 Nathann

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