diff options
author | Guido van Rossum <guido@python.org> | 2001-10-19 01:31:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-10-19 01:31:59 (GMT) |
commit | c524d952da928f745203876f2e67f651c2bc7246 (patch) | |
tree | 59686a72378708c6884596341bdd353d5ac3e4bf /Misc | |
parent | b6c1d5239cfeadd761d2055cc44212f7a6b7e5af (diff) | |
download | cpython-c524d952da928f745203876f2e67f651c2bc7246.zip cpython-c524d952da928f745203876f2e67f651c2bc7246.tar.gz cpython-c524d952da928f745203876f2e67f651c2bc7246.tar.bz2 |
SF patch #460805 by Chris Gonnerman: Support for unsetenv()
This adds unsetenv to posix, and uses it in the __delitem__ method of
os.environ.
(XXX Should we change the preferred name for putenv to setenv, for
consistency?)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -46,14 +46,15 @@ Extension modules - binascii has now two quopri support functions, a2b_qp and b2a_qp. -- readline now supports setting the startup_hook and the pre_event_hook. - -- os and posix supports chroot() and setgroups() where available. The - stat(), fstat(), statvfs() and fstatvfs() functions now return - "pseudo-sequences" -- the various fields can now be accessed as - attributes (e.g. os.stat("/").st_mtime) but for backwards - compatibility they also behave as a fixed-length sequence. Some - platform-specific fields (e.g. st_rdev) are only accessible as +- readline now supports setting the startup_hook and the + pre_event_hook, and adds the add_history() function. + +- os and posix supports chroot(), setgroups() and unsetenv() where + available. The stat(), fstat(), statvfs() and fstatvfs() functions + now return "pseudo-sequences" -- the various fields can now be + accessed as attributes (e.g. os.stat("/").st_mtime) but for + backwards compatibility they also behave as a fixed-length sequence. + Some platform-specific fields (e.g. st_rdev) are only accessible as attributes. - time: localtime(), gmtime() and strptime() now return a |