os.environ.copy()['COPY_HUH'] = "not really"

Alex Martelli aleax at aleax.it
Wed May 1 11:13:14 EDT 2002


Terry Reedy wrote:
        ...
> Perhaps os._Environ should have a .dict() method (if is does not now)
> to do the conversion.

dict(os.environ) seems a better solution to me.  It's a general way to
make a dictionary from any generic mapping, after all.


Alex




More information about the Python-list mailing list