[issue33625] Disable GIL on getpwnam and getpwuid

2018-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Functions getpwnam() and getpwuid() are not reentrant. This is not a problem if their use is guarded with GIL and extensions don't call them directly. But if release GIL, we should use reentrant getpwnam_r() and getpwuid_r() instead. There may be an open is

[issue33625] Disable GIL on getpwnam and getpwuid

2018-05-23 Thread Christian Heimes
Christian Heimes added the comment: Since your patch is a bug fix, it can be back-ported to 2.7 and 3.6/3.7. -- nosy: +christian.heimes type: -> behavior versions: +Python 2.7, Python 3.7, Python 3.8 ___ Python tracker

[issue33625] Disable GIL on getpwnam and getpwuid

2018-05-23 Thread William Grzybowski
Change by William Grzybowski : -- keywords: +patch pull_requests: +6711 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue33625] Disable GIL on getpwnam and getpwuid

2018-05-23 Thread William Grzybowski
New submission from William Grzybowski : Hello, Currently the GIL is not disabled when calling pwd.getpwnam nor pwd.getpwuid. It could be the C library call may take some time for completion, especially when using third-party modules on the system (nss-ldap, nss-pgsql, sss, etc). Disabling GI