Veek M wrote:

>                 new_col = self.b[row].index('def')
>                 self.w.cursor = row, new_col

>                 new_col = self.b[row].rindex('def')
>                 self.w.cursor = row, new_col

There's also the different methods index vs rindex. Does this sort of thing 
justify two functions and associated infrastructure (it's for vim so 2 x 3 
mode lines in my .vimrc)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to