Aw: Re: Invoking return through a function?

Karsten Hilbert Karsten.Hilbert at gmx.net
Sun Oct 29 13:08:42 EDT 2017


> 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



More information about the Python-list mailing list