@@ -1380,6 +1380,10 @@ way is to instantiate one of the following classes:
1380
1380
DLLs and determine which one is not found using Windows debugging and
1381
1381
tracing tools.
1382
1382
1383
+ .. versionchanged :: 3.12
1384
+
1385
+ The *name * parameter can now be a :term: `path-like object `.
1386
+
1383
1387
.. seealso ::
1384
1388
1385
1389
`Microsoft DUMPBIN tool <https://docs.microsoft.com/cpp/build/reference/dependents >`_
@@ -1398,13 +1402,21 @@ way is to instantiate one of the following classes:
1398
1402
.. versionchanged :: 3.3
1399
1403
:exc: `WindowsError ` used to be raised.
1400
1404
1405
+ .. versionchanged :: 3.12
1406
+
1407
+ The *name * parameter can now be a :term: `path-like object `.
1408
+
1401
1409
1402
1410
.. class :: WinDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=None)
1403
1411
1404
1412
Windows only: Instances of this class represent loaded shared libraries,
1405
1413
functions in these libraries use the ``stdcall `` calling convention, and are
1406
1414
assumed to return :c:expr: `int ` by default.
1407
1415
1416
+ .. versionchanged :: 3.12
1417
+
1418
+ The *name * parameter can now be a :term: `path-like object `.
1419
+
1408
1420
The Python :term: `global interpreter lock ` is released before calling any
1409
1421
function exported by these libraries, and reacquired afterwards.
1410
1422
@@ -1418,6 +1430,10 @@ function exported by these libraries, and reacquired afterwards.
1418
1430
1419
1431
Thus, this is only useful to call Python C api functions directly.
1420
1432
1433
+ .. versionchanged :: 3.12
1434
+
1435
+ The *name * parameter can now be a :term: `path-like object `.
1436
+
1421
1437
All these classes can be instantiated by calling them with at least one
1422
1438
argument, the pathname of the shared library. If you have an existing handle to
1423
1439
an already loaded shared library, it can be passed as the ``handle `` named
0 commit comments