how to comment lot of lines in python

Eric Deveaud edeveaud at pasteur.fr
Fri Mar 31 10:21:28 EST 2006


olsongt at verizon.net wrote:
> 
>  Eric Deveaud wrote:
> > diffuser78 at 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 ;-)
> >
> 
>  docstrings are a bit of a magical construct.  Not all strings in a
>  function are docstrings.


yep fogotten that triple quotted strings are considered as docstring
only if they are the first lines of the module/fonction/class/method 
excluding the comments lines.

	my bad

	Eric

-- 
SYBEX ORIGINAL SOFTWARE
NOUVEAU KIT LINUX REDHAT 5.2 POUR WIN 95/98
-+- Sybex in Guide du linuxien pervers - "L'incompétance en action" -+-



More information about the Python-list mailing list