#16929: Creating SDP interface
-------------------------------------+-------------------------------------
       Reporter:  ingolfured         |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.10
      Component:  interfaces         |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Dima Pasechnik,    |    Reviewers:
  Ingólfur Eðvarðsson                |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  u/dimpase/16929    |  77c4132fbec36ef0333fbb4f349382a7b28db791
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Replying to [comment:14 dimpase]:
 > How does one test changes in `/src/module_list.py` without rebuilding
 the whole thing?
 If you just want to rebuild all modules in `numerical` for example:
 {{{
 $ touch src/sage/numerical/*.pyx
 $ ./sage -b
 }}}

 > > 7. Use `print()` statements compatible with Python 3.
 >
 > how does one deal with the differences in behaviour of `print()` in
 Python 2 vs 3?
 > (e.g.
 > {{{
 > Python 2.7.10 (default, Nov 27 2015, 23:12:30)
 > [GCC 4.8.4] on linux2
 > Type "help", "copyright", "credits" or "license" for more information.
 > >>> print("The answer is", 2*2)
 > ('The answer is', 4)
 > }}}
 > instead of
 > {{{
 > Python 3.4.3 (default, Oct 14 2015, 20:28:29)
 > [GCC 4.8.4] on linux
 > Type "help", "copyright", "credits" or "license" for more information.
 > >>> print("The answer is", 2*2)
 > The answer is 4
 > }}}
 I would write this as
 {{{
 print("The answer is {}".format(2*2))
 }}}

 > Should I do `from __future__ import print_function` whenever needed?
 I don't even know if that works in doctests.

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