We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc3e9ca commit b22a677Copy full SHA for b22a677
Misc/NEWS
@@ -28,6 +28,8 @@ Core and Builtins
28
Library
29
-------
30
31
+- Issue #27533: Release GIL in nt._isdir
32
+
33
- Issue #17711: Fixed unpickling by the persistent ID with protocol 0.
34
Original patch by Alexandre Vassalotti.
35
Modules/posixmodule.c
@@ -3878,10 +3878,12 @@ os__isdir_impl(PyObject *module, path_t *path)
3878
{
3879
DWORD attributes;
3880
3881
+ Py_BEGIN_ALLOW_THREADS
3882
if (!path->narrow)
3883
attributes = GetFileAttributesW(path->wide);
3884
else
3885
attributes = GetFileAttributesA(path->narrow);
3886
+ Py_END_ALLOW_THREADS
3887
3888
if (attributes == INVALID_FILE_ATTRIBUTES)
3889
Py_RETURN_FALSE;
0 commit comments