[Idle-dev] [ idlefork-Bugs-817898 ] Threads and output
SourceForge.net
noreply at sourceforge.net
Sat Oct 4 18:42:23 EDT 2003
Bugs item #817898, was opened at 2003-10-05 00:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=817898&group_id=9579
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Noam Raphael (noamr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Threads and output
Initial Comment:
Hello,
If a thread writes output (into sys.stdin) while a
command should be executed, the command you tried to
execute never finishes executing, so you are stuck.
For example, type this:
>>> from threading import Thread
>>> def f():
for i in range(200):
print i,
>>> t = Thread(target=f)
>>> t.start()
Now, while the numbers are showing, type Enter. After
the numbers stopped showing, you'll notive that you
can't execute anything, until you restart the shell.
I noticed this because I wrote a function which
executes at a seperate thread and writes to sys.stderr.
If I try to execute something while the output is being
printed, I get stuck.
Bye,
Noam
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=817898&group_id=9579
More information about the IDLE-dev
mailing list