#18492: sage's setup.py breaks on python 3
-------------------------------------+-------------------------------------
       Reporter:  ohanar             |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.8
      Component:  build              |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  R. Andrew Ohana    |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/ohanar/python3setuppy            |  cd33340d6aa67576520e644987bc369fcbefea1e
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by ohanar):

 Replying to [comment:3 jdemeyer]:
 > Isn't there a Python-3 equivalent of
 > {{{
 > sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
 > }}}
 >
 > Changing the `print` statement is '''not''' equivalent to changing
 `stdout`.

 I agree, but no there isn't a python 3 equivalent: python 3 requires
 `sys.stdout` to be buffered, unless you start python with the `-u` (but
 you can also do that with python 2).

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