Monthly Archives: October 2007

Python’s os.environ

As Chris Armstrong pointed out yesterday, os.environ.pop() is broken in Python versions at least up to 2.5. The method will simply remove the entry from the in-memory dictionary which holds a copy of the environment: >>> import os >>> os.system(“echo … Continue reading

Posted in Python, Snippet | 2 Comments