[ python-Bugs-1683316 ] select.select() injecting spurious text in stdout

SourceForge.net noreply at sourceforge.net
Mon Mar 19 10:12:16 CET 2007


Bugs item #1683316, was opened at 2007-03-19 00:34
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1683316&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
>Status: Pending
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Peter Williams (peter_ono)
Assigned to: Nobody/Anonymous (nobody)
Summary: select.select() injecting spurious text in stdout

Initial Comment:
I'm using a function (see attachment) similar to that described on Page 386 (Section 9.12) of the Python Cookbook (Second Edition) to capture the stdout and stderr streams of programs run with popen2.Popen3.  This involves using select.select() to detect the availability of data on the two streams.  Sometimes, what looks like a debugging message:

"EXCEPTION IN SAFE SELECT 9\n"

gets injected into the stdout stream.  As far as I can tell this has only started occuring after updating to version 2.4.4.

No exception occurs and the string just silently appears in stdout.  Apart from the bogus text in stdout everything seems to be working correctly and I'm able to work around the problem by looking for the string and removing whenever it occurs.

It looks to me like a debugging message that somebody forgot to remove.

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

>Comment By: Georg Brandl (gbrandl)
Date: 2007-03-19 09:12

Message:
Logged In: YES 
user_id=849994
Originator: NO

I can find no occurrence of the message or parts of it in the current 2.5
or 2.6 branches.

Please make sure that it is Python that emits that message.

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

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


More information about the Python-bugs-list mailing list