#7997: Use ast to replace display hook hack
-------------------------------------+--------------------------------------
   Reporter:  acleone                |       Owner:  was       
       Type:  enhancement            |      Status:  needs_work
   Priority:  major                  |   Milestone:            
  Component:  notebook               |    Keywords:            
     Author:  Alex Leone, Tim Dumol  |    Upstream:  N/A       
   Reviewer:                         |      Merged:            
Work_issues:                         |  
-------------------------------------+--------------------------------------

Comment(by acleone):

 I'd like to work on this patch.  At this point we're doing a lot more than
 just replacing the display hook hack - what should the scope of this patch
 be?

 (Tom, correct me if I'm wrong) The patch currently:
  1. Replaces the display hook hack with a much more robust implementation
 using python's [http://docs.python.org/library/ast.html ast library].
  2. Adds a new process implementation that passes a data object across
     * The old implementation passed a string to get exec-ed.  The string
 was "write this base64 encoded string to a file and exec it".
     * The new implementation gets the data object, writes the preparsed
 string to a file (just so exec will have line numbers), and exec's the
 string.  This is faster because it's only one exec.

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

Reply via email to