On Nov 11, 4:12 pm, Steven D'Aprano <ste...@remove.this.cybersource.com.au> wrote: > On Wed, 11 Nov 2009 03:52:45 -0800, Carl Banks wrote: > >> This is where a helper function is good. You want a dispatcher: > > > No I really don't. I want to be able to see the action performed > > adjacent to the test, and not have to scroll up to down ten pages to > > find whatever function it dispatched to. > > Then re-write the dispatcher to return a tuple (match_object, > method_to_call) and then call them there at the spot.
Well I don't just want to call a method, so I can't take that advice. Some actions will do more than just to call a method. And I don't want to scroll up or down ten screens to see what the actions associated with the regexp are. A dispatcher is out. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list