#19592: PPL Variables cannot be saved
----------------------------+-------------------------
       Reporter:  yzh       |        Owner:
           Type:  defect    |       Status:  new
       Priority:  major     |    Milestone:  sage-6.10
      Component:  geometry  |   Resolution:
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+-------------------------
Description changed by yzh:

Old description:

> It seems impossible to save an object of the Parma Polyhedra Library's
> `Variable` class.
> {{{
> sage: from sage.libs.ppl import Variable
> sage: x = Variable(0)
> sage: x.save(os.path.join(SAGE_TMP, 'pplvariable'))
> ---------------------------------------------------------------------------
> AttributeError: 'sage.libs.ppl.Variable' object has no attribute 'save'
> }}}

New description:

 It seems impossible to save an object of the Parma Polyhedra Library's
 `Variable` class and then load it.
 {{{
 sage: from sage.libs.ppl import Variable
 sage: x = Variable(0)
 sage: x.save(os.path.join(SAGE_TMP, 'pplvariable'))
 ---------------------------------------------------------------------------
 AttributeError: 'sage.libs.ppl.Variable' object has no attribute 'save'

 sage: save(x, os.path.join(SAGE_TMP, 'pplvariable'))
 sage: load(os.path.join(SAGE_TMP, 'pplvariable.sobj'))
 ---------------------------------------------------------------------------
 TypeError: __cinit__() takes exactly 1 positional argument (0 given)
 }}}

--

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