#387 Console output buffered in a confusing manner

closed-wont-fix
nobody
None
5
2006-10-23
2006-10-19
No

PyDev appears to buffer sys.stout and sys.stderr so
that they aren't displayed in chronological order, even
though they end up in the same console window
(suggesting chronological order).

For example, run the script

import sys

print >>sys.stdout, "Text 1"
print >>sys.stderr, "Text 2"

In the console window, I get

<red>Text 2</red>
Text 1

The lines should be reversed.

Discussion

  • Kis Gergely

    Kis Gergely - 2006-10-22

    Logged In: YES
    user_id=382648

    a

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-10-23

    Logged In: YES
    user_id=617340

    That's actually an Eclipse issue, and something not likely
    to change. This happens because the output is asynchronously
    gotten (but still synchronous for the same buffer). Note:
    this may change even from execution to execution (I've run
    you test here and it worked ok, but I know that results may
    vary because of the way Eclipse handles this).

    Cheers,

    Fabio

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-10-23
    • status: open --> closed-wont-fix
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks