#15264: make Mutability class ready to be used
----------------------+---------------------------------------
   Reporter:  dkrenn  |            Owner:
       Type:  defect  |           Status:  new
   Priority:  major   |        Milestone:  sage-5.13
  Component:  misc    |         Keywords:  mutability doctests
  Merged in:          |          Authors:
  Reviewers:          |  Report Upstream:  N/A
Work issues:          |           Branch:
     Commit:          |     Dependencies:
   Stopgaps:          |
----------------------+---------------------------------------
 Looking at the code in {{{sage/structure/mutability.pyx}}}, one notices
 some things that should be changed:

 Update the methods in {{{Mutability}}}: The corresponding methods in
 {{{sage/structure/sequence.py}}} seem to work nicely. E.g. there
 {{{self._is_immutable = 1}}} (in {{{set_immutable}}}) was changed to
 {{{self._is_immutable = True}}} or {{{self._is_immutable}}} got a
 {{{return}}} and a try-except (in {{{is_immutable}}}))

 Add a doctest in {{{require_mutable}}} and {{{require_immutable}}} that
 uses the class {{{Mutability}}}.

 Add doctests to {{{set_immutable}}} and to {{{is_immutable}}} that really
 test the code (and note just test the code in
 {{{sage/structure/sequence.py}}}.

 Add doctests to all functions.

 Maybe: combine {{{_require_mutable}}} and {{{_require_mutable_cdef}}} with
 {{{cpdef}}}.

 See also the discussion "Mutability" on sage-devel
 https://groups.google.com/forum/#!topic/sage-devel/dnXSgh56Boo

--
Ticket URL: <http://trac.sagemath.org/ticket/15264>
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/groups/opt_out.

Reply via email to