[issue24494] Can't specify encoding with fileinput and inplace=True
R. David Murray
report at bugs.python.org
Wed Jun 24 15:38:34 CEST 2015
R. David Murray added the comment:
I presume this is because openhook could be anything, including something where the inplace code couldn't even find the file to rename. On the other hand, Python is a "consenting adults" language, so we can assume you know what you are doing if you specify both. I think this restriction could be relaxed, and am willing to review a patch proposal to so, if it comes with tests :).
----------
nosy: +r.david.murray
stage: -> needs patch
type: -> enhancement
versions: +Python 3.6 -Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24494>
_______________________________________
More information about the Python-bugs-list
mailing list