Skip to content

Conversation

@geofft
Copy link
Contributor

@geofft geofft commented Feb 12, 2024

The motivation for this is that the unpaired backtick confuses Sphinx, and inheriting from int (e.g. through enum.IntEnum) is pretty common. See https://stackoverflow.com/q/77914856 for an example of the problem this causes.

@ghost
Copy link

ghost commented Feb 12, 2024

The following commit authors need to sign the Contributor License Agreement:

Click the button to sign:
CLA not signed

The motivation for this is that the unpaired backtick confuses Sphinx,
and inheriting from int (e.g. through enum.IntEnum) is pretty common.
See https://stackoverflow.com/q/77914856 for an example of the problem
this causes.
@geofft geofft force-pushed the fix-docstring-backtick branch from d475342 to d8d841f Compare February 12, 2024 20:18
@geofft
Copy link
Contributor Author

geofft commented May 20, 2024

Oh, this was fixed in #117847, cool!

@geofft geofft closed this May 20, 2024
geofft added a commit to geofft/cpython that referenced this pull request May 20, 2024
As reported in python#117847 and python#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, error messages, etc.

I've left ./configure and friends alone because that isn't going to
impact downstream tools and feels like a lot of churn.
geofft added a commit to geofft/cpython that referenced this pull request May 20, 2024
As reported in python#117847 and python#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, error messages, etc.

I've left ./configure and friends alone because that isn't going to
impact downstream tools and feels like a lot of churn.
geofft added a commit to geofft/cpython that referenced this pull request May 20, 2024
As reported in python#117847 and python#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, error messages, etc.

I've left ./configure and friends alone because that isn't going to
impact downstream tools and feels like a lot of churn.
geofft added a commit to geofft/cpython that referenced this pull request May 20, 2024
As reported in python#117847 and python#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, error messages, etc.

I've left ./configure and friends alone because that isn't going to
impact downstream tools and feels like a lot of churn.
geofft added a commit to geofft/cpython that referenced this pull request May 20, 2024
As reported in python#117847 and python#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.
geofft added a commit to geofft/cpython that referenced this pull request May 21, 2024
As reported in python#117847 and python#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.
geofft added a commit to geofft/cpython that referenced this pull request May 22, 2024
As reported in python#117847 and python#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.
carljm pushed a commit that referenced this pull request May 22, 2024
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.
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
As reported in python#117847 and python#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant