[Python-bugs-list] [ python-Bugs-688581 ] sys.stdout.flush() in regrtest

SourceForge.net noreply@sourceforge.net
Wed, 19 Feb 2003 13:29:19 -0800


Bugs item #688581, was opened at 2003-02-18 05:45
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=688581&group_id=5470

Category: Python Library
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Guido van Rossum (gvanrossum)
Summary: sys.stdout.flush() in regrtest

Initial Comment:
regrtest.py got some sys.stdout.flush() calls in rev. 1.96 (and fred added more in 1.122). But according to the documentation of the sys module stdout can be "any object that has a write method" and nothing is said about flush.

This bug is in 2.2.2 also (but not in 2.2.1), so a fix will have to be backported.

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2003-02-19 16:29

Message:
Logged In: YES 
user_id=6380

I suggest that you add a flush() method to your dummy stdout
object. At best this is a documentation deficiency, but I'm
not even sure about that.

----------------------------------------------------------------------

Comment By: Stefan Petrucha (pet314)
Date: 2003-02-19 16:23

Message:
Logged In: YES 
user_id=716082

That's me who found this bug.

I'm embedding Python into a DTP program (on Win + Mac
platforms). The program is windowing and so std* do not work
(I was even forced to patch of the core library on Mac as
the distributed version does not work at all). To get
diagnostic output I must redirect sys.stdout and sys.stderr.
I've done it according to the documentation, but it seem not
to work as expected with the newest releases.

Regression tests are quite important to me too - I want to
make as much available from the Lib as possible.

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-02-18 08:00

Message:
Logged In: YES 
user_id=6380

What's your use case? Since regrtest mostly controls its own
stdout, I'm not sure that the documented requirement applies.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=688581&group_id=5470