-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-91118: Fix docstrings that do not honor --without-doc-strings #31769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
JelleZijlstra
merged 12 commits into
python:main
from
arhadthedev:ctypes-without-doc-string
Apr 18, 2022
Merged
Changes from 8 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d6db6ca
Fix inlined docstrings without PyDoc_STR
arhadthedev 4a4f018
Fix sample docstrings to show good PEP 7 practice
arhadthedev 1a87604
Fix non-inlined docstrings without PyDoc_STRVAR
arhadthedev 745c887
Add NEWS entries
arhadthedev b04a234
Fix a typo
arhadthedev a9c6225
Clarify a NEWS entry for Core and Builtins
arhadthedev cf019f6
Fix a typo 2
arhadthedev e5d5613
The module is called ctypes, not _ctypes
arhadthedev 62da070
Address a review
arhadthedev 87ebe0e
Update Misc/NEWS.d/next/Documentation/2022-03-08-22-10-38.bpo-46962.F…
arhadthedev a4a94be
Address a review
arhadthedev c4a5025
Wordsmith the NEWS entry
JelleZijlstra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
Misc/NEWS.d/next/Core and Builtins/2022-03-08-21-59-57.bpo-46962.UomDfz.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Classes and functions that unconditionally declared their docstrings | ||
ignoring --without-doc-strings compilation flag no longer do so. | ||
|
||
The classes affected are :class:`~ctypes.UnionType`, | ||
:class:`~pickle.PickleBuffer`, and :class:`~types.GenericAlias`. | ||
|
||
The functions affected are :func:`ctypes.addressof`, | ||
:func:`ctypes.alignment`, :func:`ctypes.byref`, | ||
:func:`ctypes.CopyComPointer`, :func:`ctypes.FormatError`, | ||
:func:`ctypes.FreeLibrary`, :func:`ctypes.LoadLibrary`, and | ||
:func:`ctypes.sizeof`, along with a bunch of methods in | ||
:class:`~ctypes.PyCPointerType`, :class:`~ctypes.PyCSimpleType`, and | ||
:class:`~ctypes.PyCStructType`. | ||
|
||
Patch by Oleg Iarygin. |
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Documentation/2022-03-08-22-10-38.bpo-46962.FIVe9I.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
All docstrings in code snippets are now wrapped into :func:`PyDoc_STR` to | ||
not teach programmers violation of `PEP 7's Documentation Strings paragraph | ||
arhadthedev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<https://www.python.org/dev/peps/pep-0007/#documentation-strings>`_. Patch | ||
by Oleg Iarygin. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.