[issue39759] os.getenv documentation is misleading
Serhiy Storchaka
report at bugs.python.org
Fri Jul 2 17:03:40 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
It is not so uncommon to write:
foo_rate = float(os.getenv("FOO_RATE", default_foo_rate))
where default_foo_rate is float.
In any case the default value for the default parameter is not a string.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39759>
_______________________________________
More information about the Python-bugs-list
mailing list