8000 [3.11] gh-93738: Documentation C syntax (:c:data:`0` -> ``0``) (GH-97771) by miss-islington · Pull Request #97820 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-93738: Documentation C syntax (:c:data:0 -> 0) (GH-97771) #97820

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
merged 1 commit into from
Oct 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
< 8000 !-- '"` -->
Diff view
gh-93738: Documentation C syntax (:c:data:0 -> 0) (GH-97771)
:c:data:`0` -> ``0``
(cherry picked from commit 5e997cf)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
AA-Turner authored and miss-islington committed Oct 4, 2022
commit 66eca5d2f185cd6943afeb69dae3eba625bbd077
2 changes: 1 addition & 1 deletion Doc/c-api/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ For convenience, some of these functions will always return a
.. c:function:: PyObject* PyErr_SetFromWindowsErr(int ierr)

This is a convenience function to raise :exc:`WindowsError`. If called with
*ierr* of :c:data:`0`, the error code returned by a call to :c:func:`GetLastError`
*ierr* of ``0``, the error code returned by a call to :c:func:`GetLastError`
is used instead. It calls the Win32 function :c:func:`FormatMessage` to retrieve
the Windows description of error code given by *ierr* or :c:func:`GetLastError`,
then it constructs a tuple object whose first item is the *ierr* value and whose
Expand Down
0