Goto
Carsten Haese
carsten at uniqsys.com
Wed Jun 13 16:11:03 EDT 2007
On Wed, 2007-06-13 at 12:20 -0700, HMS Surprise wrote:
> How does one effect a goto in python?
One doesn't.
> I only want to use it for debug.
> I dasn't slap an "if" clause around the portion to dummy out, the
> indentation police will nab me.
If you want to disable a code block without indenting it into an "if
False:" block, use triple quotes, either ''' or """, to turn it into a
long string.
HTH,
--
Carsten Haese
http://informixdb.sourceforge.net
More information about the Python-list
mailing list