Terry J. Reedy added the comment:

I want to commit this patch more or less as is so we can move forward with the 
tests that do not need anything more. We can then elaborate mock Text as needed 
and desired.

Looking at http://effbot.org/tkinterbook/text.htm, for instance, I see that 
'lineend' is an expression modifier in that same category as +/- chars/lines. 
So _decode should not really handle it until it handles such modifiers more 
generally.

As near as I could tell from experiment, 'm.n lineend' is the same as 'm.end', 
so the former is never needed and could be changed to the latter in Idle code. 
As far as you know, correct? The use for 'lineend' would seem to be after other 
modifiers, as in '1.0 +100c lineend', where the line whose end we go to is 
likely not line 1.

Remember that for advanced Text use, we have the option of using tk.Text for a 
test, at least at first. The gain would be not having to reproduce baroque 
behavior*. The cost would be making the test a gui test and running on fewer 
buildbots. I felt that the basic mock done so far would be worth the time 
because a) it would be useful for many tests and b) I would learn the Text 
widget and how to experiment with it to determine its under-documented behavior.

*For instance, having optional spaces within modifiers as well as using them to 
separate modifiers. Do you know if there is a coherent index grammar anywhere? 
Or is it only defined by the Text.index C code?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18365>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to