Documenting properties

Gerrit Holl gerrit at nl.linux.org
Tue Sep 27 14:25:01 EDT 2005


Paul McNett wrote:
> > Whatever is preferred, what's the upside/downsides of the two beyond
> > what I just explained?
> 
> Nothing really, but something handy to keep in mind is that the string
> literal ("""x""") can be used to block out huge sections of code during
> testing, where you'd have to put a # in front of every line otherwise.

Except, of course, code that contains string literals with triple
quotes. And with a good editor, it's not too difficult to insert a # in
front of hundreds of lines (:%s/^/#/g).

Gerrit.

-- 
Temperature in Luleå, Norrbotten, Sweden:
| Current temperature   05-09-27 20:19:54    9.8 degrees Celsius ( 49.7F) |
-- 
Det finns inte dåligt väder, bara dåliga kläder.



More information about the Python-list mailing list