return command in a function.

Skip Montanaro skip at pobox.com
Wed Sep 26 21:54:38 EDT 2001


    Brian> Hi all! I'm newbie at programming and especially Python langauge.
    Brian> What do you think when someone put return, break or continue
    Brian> command in half of a function. I think that commands are like
    Brian> ``goto'' It is very confused for me to understand big code
    Brian> because such commands jump un-excepted line.

    Brian> What do you think about this and how can get be avoid of using
    Brian> such commands? Any advice?

Write smaller functions. ;-)

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list