Goto (Posting On Python-List Prohibited)

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Dec 30 18:26:28 EST 2017


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. Any other situation and you're back to
local functions.

-- 
Greg



More information about the Python-list mailing list