changeset: 102390:ebf9a4c933e9 branch: 3.5 parent: 102388:d044e03fbed6 user: Steve Dower date: Sun Jul 17 20:49:38 2016 -0700 files: Misc/NEWS Modules/posixmodule.c description: Issue #27533: Release GIL in nt._isdir diff -r d044e03fbed6 -r ebf9a4c933e9 Misc/NEWS --- a/Misc/NEWS Sun Jul 17 20:45:29 2016 -0700 +++ b/Misc/NEWS Sun Jul 17 20:49:38 2016 -0700 @@ -28,6 +28,8 @@ Library ------- +- Issue #27533: Release GIL in nt._isdir + - Issue #17711: Fixed unpickling by the persistent ID with protocol 0. Original patch by Alexandre Vassalotti. diff -r d044e03fbed6 -r ebf9a4c933e9 Modules/posixmodule.c --- a/Modules/posixmodule.c Sun Jul 17 20:45:29 2016 -0700 +++ b/Modules/posixmodule.c Sun Jul 17 20:49:38 2016 -0700 @@ -3878,10 +3878,12 @@ { DWORD attributes; + Py_BEGIN_ALLOW_THREADS if (!path->narrow) attributes = GetFileAttributesW(path->wide); else attributes = GetFileAttributesA(path->narrow); + Py_END_ALLOW_THREADS if (attributes == INVALID_FILE_ATTRIBUTES) Py_RETURN_FALSE;