[New-bugs-announce] [issue25788] fileinput.hook_encoded has no way to pass arguments to codecs
Laura Creighton
report at bugs.python.org
Thu Dec 3 11:41:30 EST 2015
New submission from Laura Creighton:
Right now there is no way, aside from writing your own openhook, to
get around the limitation that openhook=fileinput.hook_encoded("utf")
will open things with the default option for codecs.open()
of errors=strict. Adding a way to pass the errors argument seems
both easy to do and useful.
----------
components: IO
messages: 255818
nosy: lac, serhiy.storchaka
priority: normal
severity: normal
status: open
title: fileinput.hook_encoded has no way to pass arguments to codecs
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25788>
_______________________________________
More information about the New-bugs-announce
mailing list