#18814: Polyhedron.delete -> _delete
------------------------+---------------------------------
   Reporter:  ncohen    |            Owner:
       Type:  defect    |           Status:  new
   Priority:  major     |        Milestone:  sage-6.8
  Component:  geometry  |         Keywords:
  Merged in:            |          Authors:  Nathann Cohen
  Reviewers:            |  Report Upstream:  N/A
Work issues:            |           Branch:
     Commit:            |     Dependencies:
   Stopgaps:            |
------------------------+---------------------------------
 From the doc of `Polyhedron.delete` (which is a immutable/hashable
 object):
 {{{
         Delete this polyhedron.

         This speeds up creation of new polyhedra by reusing
         objects. After recycling a polyhedron object, it is not in a
         consistent state any more and neither the polyhedron nor its
         H/V-representation objects may be used any more.
 }}}

 This really shouldn't be exposed at user level:
 {{{
 sage: p = polytopes.cube()
 sage: p.delete()
 sage: p
 /home/ncohen/.Sage/local/lib/python2.7/site-
 packages/sage/repl/rich_output/display_manager.py:570: RichReprWarning:
 Exception in _rich_repr_ while displaying object: object of type
 'NoneType' has no len()
   RichReprWarning,
 
<repr(<sage.geometry.polyhedron.backend_ppl.Polyhedra_ZZ_ppl_with_category.element_class
 at 0x7f1f17c92c30>) failed: TypeError: object of type 'NoneType' has no
 len()>
 }}}

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