python gripes survey
Peter Hansen
peter at engcorp.com
Tue Aug 26 08:03:26 EDT 2003
JanC wrote:
>
> carroll at tjc.com schreef:
>
> > No kidding: I'd really like a GOTO. I know, that's heresy, but I like
> > it during development. Sometimes I have a whole bunch of tests, and
> > change something that will only affect a test near the end. I'd love
> > to GOTO around the early stuff.
> >
> > If Python used {} to delimit blocks, I could just make the skipped
> > code a block and add a condition to skip it, but with the indentation
> > as the way of showing block scope (which I *love*), I have to indent a
> > big chunk of code to use that method.
>
> If it doesn't contain docstrings, you can put that "unwanted" test code
> between triple quotes (""").
OR if you're consistent in using only one kind of docstring, say '''
only, then you can almost always use """ to comment out a block...
-Peter
More information about the Python-list
mailing list