[Python-Dev] docstring before function declaration

Anthony Baxter anthony at interlink.com.au
Mon Mar 21 08:59:18 CET 2005


On Monday 21 March 2005 18:10, Nicholas Jacobson wrote:
> IIRC, Guido once mentioned that he regretted not
> setting function docstrings to come before the
> function declaration line, instead of after.

How do you distinguish between a docstring at the top of a module 
that's immediately followed by a  function? Is it the module docstring 
or the function docstring?

-- 
Anthony Baxter     <anthony at interlink.com.au>
It's never too late to have a happy childhood.


More information about the Python-Dev mailing list