Message6456

Author pjenvey
Recipients jasonsmith, pjenvey
Date 2011-03-24.20:51:44
SpamBayes Score 1.1260279e-08
Marked as misclassified No
Message-id <1300999905.26.0.506034636805.issue1723@psf.upfronthosting.co.za>
In-reply-to
Content
IIRC our problem is our JLine console reader doesn't actually output everything (like the >>> prompt) via sys.stdout. If you disable it and use the bare minimum console I believe we'd match CPython's behavior

So on CPython you're seeing autoflush like behavior because the prompt is immediately printed afterwards and a flush is done to ensure the prompt shows up

Otherwise you'd see similar behavior in cpython if you did:

>>> sys.stdout.write('hello'); time.sleep(2)

Anyway I see this as a very minor implementation detail, but it would be nice to fix this at some point. Though it may be problematic to fix (see #695383 for a somewhat related problem)
History
Date User Action Args
2011-03-24 20:51:45pjenveysetmessageid: <1300999905.26.0.506034636805.issue1723@psf.upfronthosting.co.za>
2011-03-24 20:51:45pjenveysetrecipients: + pjenvey, jasonsmith
2011-03-24 20:51:45pjenveylinkissue1723 messages
2011-03-24 20:51:44pjenveycreate