On Thu, Dec 16, 2010 at 6:51 PM, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: ... > Functions always have one entry. The only way to have multiple entry > points is if the language allows you to GOTO into the middle of a > function, and Python sensibly does not allow this. The "one entry, one > exit" rule comes from the days when people would routinely write > spaghetti code, jumping into and out of blocks of code without using > functions at all. Only 99.7% true. Fortran still allows the appalling ENTRY statement. -- http://mail.python.org/mailman/listinfo/python-list
- If/then style question John Gordon
- Re: If/then style question Ethan Furman
- Re: If/then style question Tim Harig
- Re: If/then style question Grant Edwards
- Re: If/then style question Stefan Sonnenberg-Carstens
- Re: If/then style question Ian Kelly
- Re: If/then style question Ryan Kelly
- Re: If/then style question Steven D'Aprano
- Re: If/then style question Joel Koltner
- Re: If/then style question David Robinow
- Re: If/then style question Grant Edwards
- Re: If/then style question Francesco
- Re: If/then style question Steven D'Aprano
- Re: If/then style question Francesco
- Re: If/then style question alex23
- Re: If/then style question Carl Banks
- Re: If/then style question Steve Holden
- Re: If/then style question Steven D'Aprano
- Re: If/then style question Carl Banks
- Re: If/then style question Steven D'Aprano