> In this specific case, I wanted to invoke a return if the key doesn't 
> exist (as I wrote in my post). But this is not strictly relevant, my 
> question was more general. To phrase it in yet another way: is there 
> *any other way* to invoke return on a function, except by explicitly 
> writing "return" in its body?

Sure: fall off the end of the function. But that's not what
you are after.

Karsten
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to