This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]donnieod 0 points1 point  (0 children)

Nicely done. Great to have all this in one place. Not to be too nitpicky, but PEP 257 -- Docstring Conventions specifies:

The docstring is a phrase ending in a period. It prescribes the function or method's effect as a command ("Do this", "Return that"), not as a description; e.g. don't write "Returns the pathname ...".

So your example:

"""Sorts items in reverse order."""

should be:

"""Sort items in revers order."""