#18555: Pickling and otherwise enhancing global options
-------------------------------------+-------------------------------------
Reporter: andrew.mathas | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.8
Component: interfaces | Resolution:
Keywords: options | Merged in:
Authors: Andrew Mathas | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/andrew.mathas/pickling_global_options|
2ba392f42e9ee4b362cf61e8ddd2a9d419f0787e
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by andrew.mathas):
* commit: => 2ba392f42e9ee4b362cf61e8ddd2a9d419f0787e
Old description:
> Instances of the
> [http://doc.sagemath.org/html/en/reference/structure/sage/structure/global_options.html
> GlobalOptions] class in `sage.structure.global_options` do not pickle,
> which is annoying and causes various problems. (This is a defect.)
>
> In addition, when the `GlobalOptions` class was introduced it was
> suggested in [https://groups.google.com/forum/#!searchin/sage-
> devel/globabloptions/sage-devel/7ApZgwBTU4U/Qe6QoeuYgvAJ sage-dev] that
> it "would be nice" if we could implement the syntax used in the IPython
> configuration:
> {{{
>
> A.options.foobar = 1
>
> in addition to
>
> A.options(foobar=1)
> }}}
> Implementing this is an enhancement, which is why this ticket is listed
> as an enhancement!
>
> This (soon to be uploaded) patch will implement both of these features.
New description:
Instances of the
[http://doc.sagemath.org/html/en/reference/structure/sage/structure/global_options.html
GlobalOptions] class in `sage.structure.global_options` do not pickle,
which is annoying and causes various problems. (This is a defect.)
In addition, when the `GlobalOptions` class was introduced it was
suggested in [https://groups.google.com/forum/#!searchin/sage-
devel/globabloptions/sage-devel/7ApZgwBTU4U/Qe6QoeuYgvAJ sage-dev] that it
"would be nice" if we could implement the syntax used in the IPython
configuration:
{{{
A.options.foobar = 1
in addition to
A.options(foobar=1)
}}}
Implementing this is an enhancement, which is why this ticket is listed as
an enhancement!
The attached patch implements both of these features. There are a few
failing doc-tests that I need to fix but is seems basically OK.
--
Comment:
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=f006a84f233734e6e3793c457053051540c4f265
f006a84]||{{{Adding pickling methods}}}||
||[http://git.sagemath.org/sage.git/commit/?id=2ba392f42e9ee4b362cf61e8ddd2a9d419f0787e
2ba392f]||{{{Initial version - some failing doctests}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/18555#comment:7>
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.