[issue24739] allow argparse.FileType to accept newline argument

Mitar report at bugs.python.org
Mon Oct 25 07:08:34 EDT 2021


Mitar <mmitar at gmail.com> added the comment:

I think the issue is that it is hard to subclass it. Ideally, call to open would be made through a new _open method which would then call it, and one could easily subclass that method if/when needed.

----------
nosy: +mitar

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24739>
_______________________________________


More information about the Python-bugs-list mailing list