Message360365
| Author |
vstinner |
| Recipients |
vstinner |
| Date |
2020年01月21日.08:30:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1579595402.07.0.326081279431.issue39406@roundup.psfhosted.org> |
| In-reply-to |
| Content |
Currently, os.putenv() is always implemented with putenv(). The problem is that putenv(str) puts directly the string into the environment, the string is not copied. So Python has to keep track of this memory.
In Python 3.9, this string is now cleared at Python exit, without unsetting the environment variable which cause bpo-39395 crash.
I propose to implement os.putenv() with setenv() if available, which avoids bpo-39395 on platforms providing setenv(). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2020年01月21日 08:30:02 | vstinner | set | recipients:
+ vstinner |
| 2020年01月21日 08:30:02 | vstinner | set | messageid: <1579595402.07.0.326081279431.issue39406@roundup.psfhosted.org> |
| 2020年01月21日 08:30:01 | vstinner | link | issue39406 messages |
| 2020年01月21日 08:30:01 | vstinner | create |
|