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.034171674
Marked as misclassified No
Message-id <1190237902.57.0.871382719483.issue1181@psf.upfronthosting.co.za>
In-reply-to
Content
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).
Files
File name Uploaded
os.py.patch martin.horcicka, 2007-09-19.21:38:22
History
Date User Action Args
2007-09-19 21:38:22martin.horcickasetspambayes_score: 0.0341717 -> 0.034171674
recipients: + martin.horcicka
2007-09-19 21:38:22martin.horcickasetspambayes_score: 0.0341717 -> 0.0341717
messageid: <1190237902.57.0.871382719483.issue1181@psf.upfronthosting.co.za>
2007-09-19 21:38:22martin.horcickalinkissue1181 messages
2007-09-19 21:38:22martin.horcickacreate