[issue27351] Unexpected ConfigParser.read() behavior when passed fileobject

Łukasz Langa report at bugs.python.org
Mon Jun 20 13:28:09 EDT 2016


Łukasz Langa added the comment:

Thanks for your report, Rich.  configparser is one of the oldest libraries in the standard library.  Its behavior might sometimes not be intuitive to newcomers but is burdened by years of backwards compatibility.  Changing the behavior now to raise a type error on an open file passed to read would inevitably cause some program in the wild to break.  Given this constraint, there's not much we can do besides documentation.  If you have suggestions how we could improve it, let me know here.

----------
assignee:  -> lukasz.langa
stage:  -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27351>
_______________________________________


More information about the Python-bugs-list mailing list