[issue8900] IDLE crashes if Preference set to At Startup -> Open Edit Window

Roger Serwy report at bugs.python.org
Sun Apr 15 23:22:39 CEST 2012


Roger Serwy <roger.serwy at gmail.com> added the comment:

Thanks for your review, Terry.

Popping from the end is not an implementation of rule 2. Calling event handlers is separate concept from binding/unbinding event handlers. The "doafterhandler" list contains bind/unbind requests that were made while calling event handlers. The doafterhandler "queue" should be FIFO, not LIFO.

Code note 1:

The running time of the algorithm is an important consideration. Your last suggestion for using a for-loop looks most appropriate, as you've said. Attached is a revised patch for it.

Code note 2:

The _ComplexBinder class may need refactoring, but that's a separate issue. I'm willing to review patches for that.

----------
Added file: http://bugs.python.org/file25228/issue8900_rev1.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8900>
_______________________________________


More information about the Python-bugs-list mailing list