Re: how to comment lot of lines in python
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: how to comment lot of lines in python

From: Eric Deveaud <edeveaud@pasteur.fr>
Date: Fri Mar 31 2006 - 15:09:03 CEST

diffuser78@gmail.com wrote:
> Like in C we comment like
> /*
> Bunch of lines of code
> */
>
> Should we use docstring """ """

I would say NO.
docstring are displayed by pydoc, thus a pydoc on your code will display some
inconsistent information ;-)

> Or there is something else too ??

some moderns editors allow you to comment/uncomment a selected Bunch
of lines of code

        Eric

-- 
> afin de parfaire mon apprentissage de linux,je cherche sur lille et sa
> périphérie une nana tout linux
  JPH in Guide du linuxien pervers : "Connaître le système"
Received on Sun Apr 30 21:46:31 2006