This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.horcicka
Recipients martin.horcicka
Date 2007-09-19.21:38:22
SpamBayes Score 0.0341717
Marked as misclassified No
Message-id <>
This patch makes os.environ.clear() to have the same effect as:

for name in os.environ.keys():
    del os.environ[name]

I believe that most people expect the effects to be the same anyway.

The practical benefit is a simpler redefinition of the whole environment
if desired (e.g. in scripts run via sudo on unix systems).
File name Uploaded martin.horcicka, 2007-09-19.21:38:22
Date User Action Args
2007-09-19 21:38:22martin.horcickasetspambayes_score: 0.0341717 -> 0.0341717
recipients: + martin.horcicka
2007-09-19 21:38:22martin.horcickasetspambayes_score: 0.0341717 -> 0.0341717
messageid: <>
2007-09-19 21:38:22martin.horcickalinkissue1181 messages
2007-09-19 21:38:22martin.horcickacreate