#17019: preparser for .sage files no longer respects module docstrings
----------------------+---------------------------------------
   Reporter:  jsrn    |            Owner:
       Type:  defect  |           Status:  new
   Priority:  minor   |        Milestone:  sage-6.4
  Component:  misc    |         Keywords:  docstring, preparse
  Merged in:          |          Authors:  Johan S. R. Nielsen
  Reviewers:          |  Report Upstream:  N/A
Work issues:          |           Branch:
     Commit:          |     Dependencies:
   Stopgaps:          |
----------------------+---------------------------------------
 Running ./sage --preparse on a .sage produces a .py file such that this is
 a proper Python file. If the .sage file contains a module docstring, then
 this should be present as the module docstring of the resulting .py file.
 This means that no code-lines (non-comment, non-blank) may be added before
 this module docstring.

 There are some lines to handle this in sage-preparse. However, it is not
 handled properly, as a call to sage.misc.preparse.preparse_file earlier on
 might already then add some lines before the original docstring.

--
Ticket URL: <http://trac.sagemath.org/ticket/17019>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to