mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +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
|
|
@ -200,7 +200,7 @@ Here are some ways to address this challenge:
|
|||
Adding the checks to the concrete API would help make any interpreter
|
||||
switch to OrderedDict less painful for extension modules. However, this
|
||||
won't work. The equivalent C API call to `dict.__setitem__(obj, k, v)`
|
||||
is 'PyDict_SetItem(obj, k, v)`. This illustrates how subclasses in C call
|
||||
is `PyDict_SetItem(obj, k, v)`. This illustrates how subclasses in C call
|
||||
the base class's methods, since there is no equivalent of super() in the
|
||||
C API. Calling into Python for parent class API would work, but some
|
||||
extension modules already rely on this feature of the concrete API.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue