fix dangling keyfunc examples in documentation of heapq and sorted by wm75 · Pull Request #1432 · python/cpython (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I would probably use a full stop at the end (and again for nsmallest). The last part still functions as a sentence, it comes after other sentences (now) using full stops, and another full stop would identify the end of the paragraph.

If the code was written on a separate line, I probably wouldn’t use a full stop.