Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Diff view
Prev Previous commit
Next Next commit
Update docs.
  • Loading branch information
junkmd committed Nov 19, 2024
commit e2617f3aa2eaf05c6cb052d1e12ca14d516c77bf
8 changes: 6 additions & 2 deletions Doc/library/ctypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2754,8 +2754,7 @@ Exceptions

.. exception:: COMError(hresult, text, details)

Windows only: This non-public exception is raised when a COM method call
failed.
Windows only: This exception is raised when a COM method call failed.

.. attribute:: hresult

Expand All @@ -2774,3 +2773,8 @@ Exceptions
is the path of the help file. *helpcontext* is the help context
identifier. *progid* is the ``ProgID`` of the interface that defined the
error.

.. versionchanged:: 3.14

This exception is now public.
Previously, this was private and only available in ``_ctypes``.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not expose private API in the docs.

Suggested change
.. versionchanged:: 3.14
This exception is now public.
Previously, this was private and only available in ``_ctypes``.
.. versionadded:: next

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Youโ€™re right, this information isnโ€™t particularly useful in the documentation.

Iโ€™ll move it to the NEWS file as a supplement.

3 changes: 3 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ ctypes
to help match a non-default ABI.
(Contributed by Petr Viktorin in :gh:`97702`.)

* The :exc:`~ctypes.COMError` exception is now public.
(Contributed by Jun Komoda in :gh:`126686`.)

decimal
-------

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The :exc:`~ctypes.COMError` exception is now public.