return command in a function.

Boyd Roberts boyd at insultant.net
Thu Sep 27 07:50:57 EDT 2001


"Travers Naran" <tnaran at direct.ca> a écrit dans le message news: 9oudgb0vnk at enews2.newsguy.com...
> A return mid-way through a function is controversial.

i don't think so, because it's well defined where it's going to;
much like break and continue.

a goto could take you anywhere and complicates the 'state' and
control flow of the function.






More information about the Python-list mailing list