surprising behaviour of os.environ.clear

Joe P. Cool joe.p.cool at googlemail.com
Sat Jun 28 18:13:21 EDT 2008


On 28 Jun., 23:06, "Joe P. Cool" <joe.p.c... at googlemail.com> wrote:
> On 28 Jun., 04:05, Benjamin <musiccomposit... at gmail.com> wrote:
>
> > On Jun 27, 4:05 pm, "Joe P. Cool" <joe.p.c... at googlemail.com> wrote:
> > This is because of how os.environ is implement with a UserDict
> > subclass. You should report this at bugs.python.org.
>
> issue 3227: os.environ.clear has no effect on child processes.

According to Benjamin Peterson this has been fixed in the upcoming
Python 2.6.



More information about the Python-list mailing list