mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Remove almost all unpaired backticks in docstrings (#119231)
As reported in #117847 and #115366, an unpaired backtick in a docstring tends to confuse e.g. Sphinx running on subclasses of standard library objects, and the typographic style of using a backtick as an opening quote is no longer in favor. Convert almost all uses of the form The variable `foo' should do xyz to The variable 'foo' should do xyz and also fix up miscellaneous other unpaired backticks (extraneous / missing characters). No functional change is intended here other than in human-readable docstrings.
This commit is contained in:
parent
81865002ae
commit
ef172521a9
39 changed files with 172 additions and 172 deletions
|
@ -585,7 +585,7 @@ non-existing elements are considered to be infinite. The interesting\n\
|
|||
property of a heap is that a[0] is always its smallest element.\n"
|
||||
"\n\
|
||||
The strange invariant above is meant to be an efficient memory\n\
|
||||
representation for a tournament. The numbers below are `k', not a[k]:\n\
|
||||
representation for a tournament. The numbers below are 'k', not a[k]:\n\
|
||||
\n\
|
||||
0\n\
|
||||
\n\
|
||||
|
@ -598,7 +598,7 @@ representation for a tournament. The numbers below are `k', not a[k]:\n\
|
|||
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30\n\
|
||||
\n\
|
||||
\n\
|
||||
In the tree above, each cell `k' is topping `2*k+1' and `2*k+2'. In\n\
|
||||
In the tree above, each cell 'k' is topping '2*k+1' and '2*k+2'. In\n\
|
||||
a usual binary tournament we see in sports, each cell is the winner\n\
|
||||
over the two cells it tops, and we can trace the winner down the tree\n\
|
||||
to see all opponents s/he had. However, in many computer applications\n\
|
||||
|
@ -653,7 +653,7 @@ vanishes, you switch heaps and start a new run. Clever and quite\n\
|
|||
effective!\n\
|
||||
\n\
|
||||
In a word, heaps are useful memory structures to know. I use them in\n\
|
||||
a few applications, and I think it is good to keep a `heap' module\n\
|
||||
a few applications, and I think it is good to keep a 'heap' module\n\
|
||||
around. :-)\n"
|
||||
"\n\
|
||||
--------------------\n\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue