mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Default schedparams set to (0,0): no event-intervention by Python mainloop. This
was always meant to be the default, and the new example-2 was pretty critical of this.
This commit is contained in:
parent
dd206899db
commit
0c3e4b6ca1
1 changed files with 2 additions and 2 deletions
|
@ -160,9 +160,9 @@ class Application:
|
|||
# applications.
|
||||
break
|
||||
finally:
|
||||
apply(MacOS.SchedParams, self.schedparams)
|
||||
apply(MacOS.SchedParams, saveparams)
|
||||
|
||||
schedparams = MacOS.SchedParams()
|
||||
schedparams = (0, 0) # By default disable Python's event handling
|
||||
|
||||
def dopendingevents(self, mask = everyEvent):
|
||||
"""dopendingevents - Handle all pending events"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue