return command in a function.

Peter Hansen peter at engcorp.com
Fri Sep 28 23:28:52 EDT 2001


Duncan Booth wrote:
> 
> My rule of thumb for using return is that it is alright at or near the top
> of a function, and it is alright at or near the bottom of the function, and
> anywhere else the function is too long and should be split up anyway.

It's always nice to see a clear definition of something one 
has been doing instinctively without a clue why and without
even realizing (until now) that one has been doing it! :-)

Thanks...

-- 
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com



More information about the Python-list mailing list