#4894: [with patch; needs review] save_session -- bug when saving %cython
functions, etc.
----------------------+-----------------------------------------------------
Reporter: was | Owner: boothby
Type: defect | Status: new
Priority: major | Milestone: sage-3.2.3
Component: notebook | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by was):
The attached patch fixes the problem by explicitly not saving builtin (or
not)) functions or classes, since in fact defining classes also breaks
load_session and save_session.
It just occurred to me that one can still make sessions that can't be
reloaded. E.g.,
{{{
class Foo:
pass
f = Foo()
}}}
Then save_session followed by quit and load_session fails. However, I
doubt there is any good way to deal with this. Fortunately, in the above
case, unlike in the case that this bug is about, one can simply re-
evaluate the code to define Foo, and suddenly load_session works fine.
I've put a comment abou this in the patch.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4894#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---