[issue36387] Refactor getenvironment() in _winapi.c

2019-03-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36387] Refactor getenvironment() in _winapi.c

2019-03-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8abd7c7e37714ce0c42f871f81e52f14c155d1bd by Serhiy Storchaka in branch 'master': bpo-36387: Refactor getenvironment() in _winapi.c. (GH-12482) https://github.com/python/cpython/commit/8abd7c7e37714ce0c42f871f81e52f14c155d1bd --

[issue36387] Refactor getenvironment() in _winapi.c

2019-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ __

[issue36387] Refactor getenvironment() in _winapi.c

2019-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12434 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36387] Refactor getenvironment() in _winapi.c

2019-03-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.8 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue36387] Refactor getenvironment() in _winapi.c

2019-03-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Function getenvironment() in Modules/_winapi.c is used for converting the environment mapping to the wchar_t string for passing to CreateProcessW(). It performs the following steps: * Allocate a Py_UCS4 buffer and copy all keys and values, converting the