New syntax for blocks

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Wed Nov 11 19:12:08 EST 2009


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.




-- 
Steven



More information about the Python-list mailing list