3.3 Sage Preparsing

The following files are relevant to preparsing in Sage:

  1. SAGE_ROOT/local/bin/sage-sage,

  2. SAGE_ROOT/local/bin/sage-preparse,

  3. SAGE_ROOT/devel/sage/sage/misc/preparser.py

In particular, the file preparser.py contains the Sage preparser code. Here are some , and the following are some notes from it:

Consult the file preparser.py for more details about Sage preparsing, more examples involving raw literals, etc.

When a file foo.sage is loaded in a Sage session, a preparsed version of foo.sage is created titled foo.py. The beginning of foo.py states: This file was *autogenerated* from the file foo.sage.

See About this document... for information on suggesting changes.