[issue1253] IDLE - Percolator overhaul
Tal Einat
report at bugs.python.org
Tue Oct 23 15:49:34 CEST 2007
Tal Einat added the comment:
The change required for Squeezer and ShellLogger is the separation of
the Tk Text specific logic into a subclass, which makes Percolator a
generally useful class. Along with the simple patch to Delegator.py
which allows delegation to callables, this change allows one to replace
a method with a Percolator instance.
I want to do this for EditorWindow.write, since both Squeezer and
ShellLogger need to hook onto this call somehow. Furthermore,
ShellLogger must catch this call before Squeezer does, since Squeezer
may change the output, but the original output should pass through
ShellLogger first.
Since there is no way to control the order in which extensions are
loaded, this constraint must be enforced by the extensions themselves.
Using the patched Percolator is the simplest way I could come up with to
support this. (IMHO adding a constraint solver for extensions at this
point would be overkill.)
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1253>
__________________________________
More information about the Python-bugs-list
mailing list