#9191: Running pyx files from the command line doesn't work anymore
-------------------------------------------------------+--------------------
       Reporter:  was                                  |         Owner:  jason  
                            
           Type:  defect                               |        Status:  
needs_review                       
       Priority:  major                                |     Milestone:  
sage-5.4                           
      Component:  misc                                 |    Resolution:         
                            
       Keywords:                                       |   Work issues:         
                            
Report Upstream:  N/A                                  |     Reviewers:  Jeroen 
Demeyer, Karl-Dieter Crisman
        Authors:  Karl-Dieter Crisman, Jeroen Demeyer  |     Merged in:         
                            
   Dependencies:                                       |      Stopgaps:         
                            
-------------------------------------------------------+--------------------

Comment (by jdemeyer):

 Replying to [comment:6 kcrisman]:
 > I'm a little concerned about why .pyx files worked before anyway.
 They worked only because they were treated as plain Python files.  No
 Cython was involved.  Treating them like `.spyx` files is the logical
 thing to do.

 > Also, any reason for making the messages print to stderr when they
 aren't errors?
 These kind of diagnostic messages are often printed to `stderr` in Unix-
 land.  For example, `gcc -v` will output what it's doing to `stderr`.
 This makes it much easier to use the output of the script non-
 interactively: if I want to run a `.spyx` file in a shell script, I have
 to manually remove the "Compiling..." line if its output to `stdout`.

 I'm happy with simply removing the "Compiling..." line also.

 > As well as for changing things to the 'new' print statements?
 I really dislike the
 {{{
 print >>file
 }}}
 syntax in Python 2.  Besides, it doesn't hurt to be more compatible with
 Python 3.

 > Finally, if you're going to add pyx files to those which this command
 does, you should probably add a testing part to the doctest patch for that
 as well...
 I'm not sure, because running `.pyx` files from the command line is not
 documented.  The documentation suggests using `.spyx` files, not `.pyx`
 files.

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