Staging: this is not the live site, pydocs.org.
Command-line interface libraries
Deprecated since 3.10. This function is deprecated since fileinput.input() and FileInput now have encoding and errors parameters.
Returns a hook which opens each file with open(), using the given encoding and errors to read the file.
Changed in 3.6
- 3.6: Added the optional errors parameter.