This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alexander.Belopolsky
Recipients Alexander.Belopolsky, belopolsky, pitrou, skrah
Date 2012-09-03.18:16:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <B82A92C9-775D-4F04-8120-6600F0E1C8B8@gmail.com>
In-reply-to <1346692948.41.0.388052266362.issue15855@psf.upfronthosting.co.za>
Content
On Sep 3, 2012, at 1:22 PM, Stefan Krah <report@bugs.python.org> wrote:

> Personally I'd also prefer if all
> docstrings go into a separate section. I always perceive docstrings
> as noise that takes up precious vertical space, so for _decimal I even
> banned them into docstrings.h.
> 
> I don't know if there's any kind of convention for that though.

I've seen two types of convention: a docs trying before function definition and docstring after function body. I prefer the first because the docstring doubles as a short comment describing the function that follows.  If we put docstrings in a separate section, we may see comments above functions diverge from docstrings over time. 

On the other hand, this is not that important and consolidating the changes in one section will make 3.2 to 3.3 merge easier.  I'll consolidate and wait for someone else to complain. :-)
History
Date User Action Args
2012-09-03 18:16:49Alexander.Belopolskysetrecipients: + Alexander.Belopolsky, belopolsky, pitrou, skrah
2012-09-03 18:16:49Alexander.Belopolskylinkissue15855 messages
2012-09-03 18:16:49Alexander.Belopolskycreate