[PYTHONMAC-SIG] waiting for events?
Ron Cohen
rcohen@humbug.llnl.gov
Tue, 11 Nov 1997 09:31:06 -0800
If I have python and various other applications open on my Mac,
and I execute a loop with printing in Python, I find that Python
waits periodically to look for events, like mouse motions. In
particular for a simple thing like:
for i in range(100):
for j in range(50):
printj=j
print i,printj
the execution (printing) slows down and may even come to a hault part
way through if I don't do something like wiggle the mouse. The
situation is even more dramatic if I click on another application's
window to make it active. Can someone explain what is going on and if
there is a way to fix this?
I am running Python 1.4 on a powerbook 5300, OS 8, but I have observed
this with 1.4 running on other macs as well; I have no experience
with other versions of Python.
Ron Cohen
(rcohen@llnl.gov)
_______________
PYTHONMAC-SIG - SIG on Python for the Apple Macintosh
send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
_______________