Goto (Posting On Python-List Prohibited)
bartc
bc at freeuk.com
Sat Dec 30 18:45:28 EST 2017
On 30/12/2017 23:26, Gregory Ewing wrote:
> bartc wrote:
>> B and C occur twice, so a goto is a quick way to reuse B and C without
>> needing to duplicate code,
>
> This only works if the repeated part happens to be at the
> tail of each case.
IME that seems to be the most common situation.
Any other situation and you're back to
> local functions.
--
Bartc
More information about the Python-list
mailing list