10000 Add a mention of the difference in exceptions that can be raised. · python/cpython@181f512 · GitHub
[go: up one dir, main page]

Skip to content

Commit 181f512

Browse files
committed
Add a mention of the difference in exceptions that can be raised.
1 parent e70aa54 commit 181f512

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/ctypes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,6 +1799,9 @@ different ways, depending on the type and number of the parameters in the call:
17991799
integer. *name* is name of the COM method. *iid* is an optional pointer to
18001800
the interface identifier which is used in extended error reporting.
18011801

1802+
If *iid* is not specified, a :exc:`WindowsError` is raised if the COM method
1803+
call fails. If *iid* is specified, a :exc:`COMError` is raised instead.
1804+
18021805
COM methods use a special calling convention: They require a pointer to
18031806
the COM interface as first argument, in addition to those parameters that
18041807
are specified in the :attr:`!argtypes` tuple.

0 commit comments

Comments
 (0)
0