On Sun, Dec 09, 2001 at 02:54:22PM -0800, Tavis Rudd wrote:
>     def foo(self):
>         """
>         Returns foo
> 
>       More detailed info ...
>         """

There's also the three-more-spaces convention:

def foo(self):
    """First line...
       
       Second line...
       Third line...
    """
    first statement

That makes it easier to keep code and comments separate when you're
looking down the page.  Of course, it only works with all-space
indentation, otherwise you'd get mixed tabs and spaces, and it does
lose you three characters of comment text per line.

-- 
-Mike (Iron) Orr, [EMAIL PROTECTED]  (if mail problems: [EMAIL PROTECTED])
   http://iron.cx/     English * Esperanto * Russkiy * Deutsch * Espan~ol

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to