On Thu, Jun 27, 2013 at 10:20 AM, Guido van Rossum <guido@python.org> wrote:
On Thu, Jun 27, 2013 at 1:21 AM, Antoine Pitrou <solipsis@pitrou.net> wrote:
> I don't always find it easy to summarize a function in one line.
Neither do I. But I always manage to do it anyway.
+1
If you cannot summarize what your function does in one line, chances are it is time to split your function, not the summary line. Ideally, the name of the function should already give a good idea of what it does. A summary line can just rephrase the same in a complete sentence.
I took a quick look at the stdlib and in many cases a summary line is already there. It is just the issue of formatting.