@@ -1380,6 +1380,10 @@ way is to instantiate one of the following classes:
13801380 DLLs and determine which one is not found using Windows debugging and
13811381 tracing tools.
13821382
1383+ .. versionchanged :: 3.12
1384+
1385+ The *name * parameter can now be a :term: `path-like object `.
1386+
13831387.. seealso ::
13841388
13851389 `Microsoft DUMPBIN tool <https://docs.microsoft.com/cpp/build/reference/dependents >`_
@@ -1398,13 +1402,21 @@ way is to instantiate one of the following classes:
13981402 .. versionchanged :: 3.3
13991403 :exc: `WindowsError ` used to be raised.
14001404
1405+ .. versionchanged :: 3.12
1406+
1407+ The *name * parameter can now be a :term: `path-like object `.
1408+
14011409
14021410.. class :: WinDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=None)
14031411
14041412 Windows only: Instances of this class represent loaded shared libraries,
14051413 functions in these libraries use the ``stdcall `` calling convention, and are
14061414 assumed to return :c:expr: `int ` by default.
14071415
1416+ .. versionchanged :: 3.12
1417+
1418+ The *name * parameter can now be a :term: `path-like object `.
1419+
14081420The Python :term: `global interpreter lock ` is released before calling any
14091421function exported by these libraries, and reacquired afterwards.
14101422
@@ -1418,6 +1430,10 @@ function exported by these libraries, and reacquired afterwards.
14181430
14191431 Thus, this is only useful to call Python C api functions directly.
14201432
1433+ .. versionchanged :: 3.12
1434+
1435+ The *name * parameter can now be a :term: `path-like object `.
1436+
14211437All these classes can be instantiated by calling them with at least one
14221438argument, the pathname of the shared library. If you have an existing handle to
14231439an already loaded shared library, it can be passed as the ``handle `` named
0 commit comments