Issue 1683316: select.select() injecting spurious text in stdout (original) (raw)

Issue1683316

Created on 2007-03-19 00:34 by peter_ono, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
utils.py peter_ono,2007-03-19 00:34 Python code containing the function involved
Messages (3)
msg31568 - (view) Author: Peter Williams (peter_ono) Date: 2007-03-19 00:34
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.
msg31569 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-03-19 09:12
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.
msg31570 - (view) Author: SourceForge Robot (sf-robot) Date: 2007-04-03 02:20
This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
History
Date User Action Args
2022-04-11 14:56:23 admin set github: 44740
2007-03-19 00:34:18 peter_ono create