[Tutor] Retrieving information from a plain text file(WinXP/py2.6.2/Beginner)

Alan Gauld alan.gauld at btinternet.com
Tue Nov 3 22:52:12 CET 2009


"Serdar Tumgoren" <zstumgoren at gmail.com> wrote 

> Also, on a side note, you can greatly improve the readability of your
> code by using the triple-quote style for multi-line docstrings inside
> functions (rather than the hash comment marks). I tend to use hash
> marks for one-line/inline comments, since they can really become an
> eyesore (at least IMHO) when used too liberally.

I'd second that suggestion with the added benefit that if you use 
docstrings they will be detected by Pythons help() function.


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list