Serhiy Storchaka <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue39759>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com