If/then style question

David Robinow drobinow at gmail.com
Fri Dec 17 09:47:43 EST 2010


On Thu, Dec 16, 2010 at 6:51 PM, Steven D'Aprano
<steve+comp.lang.python at 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.



More information about the Python-list mailing list