python gripes survey

JanC usenet_spam at janc.invalid
Tue Aug 26 00:14:00 EDT 2003


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 (""").

-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9




More information about the Python-list mailing list