Question regarding commenting code
Roman Suzi
rnd at onego.ru
Tue Sep 4 13:48:13 EDT 2001
More information about the Python-list mailing list
Tue Sep 4 13:48:13 EDT 2001
- Previous message (by thread): Question regarding commenting code
- Next message (by thread): Question regarding commenting code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 4 Sep 2001, Andrew Gould wrote: >When adding comments to scripts, can I insert lines of comments inside a >loop block? For example: > >for n in a_list: ># separate values using spaces as delimiters > a_line = string.split(n) ># get the first value > a_value = a_line[0] ># print the first value > print a_value This is not good. Look at http://www.python.org/doc/essays/styleguide.html IIRC, it has a discussion of good comment style. Sincerely yours, Roman Suzi -- _/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/ _/ Tuesday, September 04, 2001 _/ Powered by Linux RedHat 6.2 _/ _/ "Useless Invention: Fine glass-crystal castanets." _/
- Previous message (by thread): Question regarding commenting code
- Next message (by thread): Question regarding commenting code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list