[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

Amaury Forgeot d'Arc report at bugs.python.org
Wed Jul 21 12:52:03 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The patch actually does 2 things:
- it prevents the usage of '=' in putenv, which is is good because the putenv() system call handles this badly.
- it will raise an error when unsetting a nonexistent variable. This is a change in behaviour which is not needed. (in a shell, the "unset" command will silently ignore missing variables)

Also, some unit tests would be appreciated

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4926>
_______________________________________


More information about the Python-bugs-list mailing list