Crashing IDLE

Gustavo Cordova gcordova at hebmex.com
Thu May 30 09:27:25 EDT 2002


> 
> I would consider that a bug - "pass" should be checking for 
> ctrl-c and other
> events imo. It sure strikes me as a point for relinquishing control.
> 
> David LeBlanc
> Seattle, WA USA
> 

But "pass" is a NOP, which is exactly nothing, which
means it must do nothing. If you give it the semantics
of checking for KeyboardInterrupt, or SIGHUP, or yielding
control to another thread, or ... etc, then it's no longer
a NOP, so it shouldn't be "pass", but another keyword...

"sleep" perhaps?

or "yield" maybe? Naa, that's for generators.

Something akin to "yield", but not "yield".

-gustavo





More information about the Python-list mailing list