#7514: rewrite load and attach
---------------------------+------------------------------------------------
Reporter: was | Owner: tbd
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.3
Component: misc | Keywords:
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
---------------------------+------------------------------------------------
Comment(by was):
> Can we attach a file already in the sage tree that we are editing?
> I stopped using it because sometimes the changes in the file were not
> considered and I have been stopping sage and running sage -br ever
since then.
You probably don't understand what attach does. All it does is execfile
the file that you attached. There are situations where this happening
might be perceived as "the file were not considered". E.g., if you create
an install F of a class Foo defined in a file a.py, then a.py is reloaded,
the object F is *not* somehow magically modified in memory to be an
instance of a the new Foo that was defined in the file a.py. That's not
how Python works, and it would be weird and confusing overall if things
did work that way.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7514#comment:3>
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=.