Issue 6915: os.listdir inconsistenly releases the GIL on win32 (original) (raw)

Issue6915

Created on 2009-09-15 04:43 by rfk, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
listdir_gil.patch rfk,2009-09-15 04:43
Messages (2)
msg92643 - (view) Author: Ryan Kelly (rfk) Date: 2009-09-15 04:43
The win32 implementation of os.listdir() releases the GIL around calls to FindNextFile, but not around calls to FindFirstFile. Attached is a simple patch to consistently release the GIL around any such calls.
msg113500 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-08-10 00:04
The original patch also modifies attributes_from_dir() and attributes_from_dir_w(), but these are called with the GIL released. Modified patch committed in r83921 (py3k), r83922 (3.1) and r83923 (2.7). Thank you!
History
Date User Action Args
2022-04-11 14:56:53 admin set github: 51164
2010-08-10 00:04:32 pitrou set status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved
2010-08-02 20:48:31 georg.brandl set assignee: loewis -> pitrounosy: + pitrou
2010-07-11 09:38:32 BreamoreBoy set stage: patch reviewcomponents: + Library (Lib), - Noneversions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6
2009-09-17 07:51:18 georg.brandl set assignee: loewisnosy: + loewis
2009-09-15 04:43:14 rfk create