Question regarding commenting code
rnd at onego.ru
Thu Sep 6 07:32:07 CEST 2001
On Wed, 5 Sep 2001, Tim Roberts wrote:
> Roman Suzi <rnd at onego.ru> wrote:
> >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
> >># print the first value
> >> print a_value
> >This is not good.
> However, without judging the moral implications, this IS legal. I assume
> that was the purpose of the question.
...and this code is hard to maintain. That is why it is bad.
Sincerely yours, Roman A.Suzi
- Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
More information about the Python-list