[New-bugs-announce] [issue5253] os.environ.get() doesn't handle default value
Mary Stern
report at bugs.python.org
Fri Feb 13 19:55:00 CET 2009
New submission from Mary Stern <marystern at yahoo.com>:
os.environ.get('ENV_VAR, 'mydefault')
returns '' rather than 'mydefault' if not set.
It would be nice if this standard dict-style behavior was supported.
----------
messages: 81963
nosy: marystern
severity: normal
status: open
title: os.environ.get() doesn't handle default value
type: feature request
versions: Python 2.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5253>
_______________________________________
More information about the New-bugs-announce
mailing list