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
New submission from lilydjwg:
I want to use fileinput to modify files, but find no way to specify the file
encoding. I tried to use hook_encoded, but it says FileInput cannot use an
opening hook in inplace mode.
--
components: Library (Lib)
messages: 245711
nosy: lilydjwg
priority: