#7776: Implements sage.misc.misc.inject_variable(name, value)
------------------------------+---------------------------------------------
Reporter: nthiery | Owner: was
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.3.1
Component: user interface | Keywords:
Work_issues: | Author: Nicolas M. ThiƩry
Upstream: N/A | Reviewer:
Merged: |
------------------------------+---------------------------------------------
Changes (by nthiery):
* status: new => needs_review
Old description:
> From the doc:
>
> inject a variable into the main global namespace
>
> INPUT:
> - name - a string
> - value - anything
>
> EXAMPLES::
>
> sage: from sage.misc.misc import inject_variable
> sage: inject_variable("a", 314)
> sage: a
> 314
>
> This will be used in the upcoming "inject_shorthands" patch for symmetric
> functions, and could be used in the various inject_variable code instead
> of manipulating directly globals() (which could be incorrect if not
> called directly from the interpreter/notebook.
New description:
From the doc:
{{{
inject a variable into the main global namespace
INPUT:
- name - a string
- value - anything
EXAMPLES::
sage: from sage.misc.misc import inject_variable
sage: inject_variable("a", 314)
sage: a
314
}}}
This will be used in the upcoming "inject_shorthands" patch for symmetric
functions #7777, and could be used in the various inject_variable code
instead of manipulating directly globals() (which could be incorrect if
not called directly from the interpreter/notebook.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7776#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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.