mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
gh-93738: Documentation C syntax (:c:data:0
-> `0
`) (GH-97771)
:c:data:`0` -> ``0``
(cherry picked from commit 5e997cff3e
)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
4dda0c8173
commit
d21bef549b
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ For convenience, some of these functions will always return a
|
||||||
.. c:function:: PyObject* PyErr_SetFromWindowsErr(int ierr)
|
.. c:function:: PyObject* PyErr_SetFromWindowsErr(int ierr)
|
||||||
|
|
||||||
This is a convenience function to raise :exc:`WindowsError`. If called with
|
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
|
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`,
|
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
|
then it constructs a tuple object whose first item is the *ierr* value and whose
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue