(files=None, inplace=False, backup="", *, mode="r", openhook=None,
          encoding=None, errors=None)
return _state
Return an instance of the FileInput class, which can be iterated.

    The parameters are passed to the constructor of the FileInput class.
    The returned instance, in addition to being an iterator,
    keeps global state for the functions of this module,.
Return an instance of the FileInput class, which can be iterated.
Return an instance of the FileInput class which can be iterated .
def input(files=None, inplace=False, backup="", *, mode="r", openhook=None,
          encoding=None, errors=None):
    """Return an instance of the FileInput class, which can be iterated.

    The parameters are passed to the constructor of the FileInput class.
    The returned instance, in addition to being an iterator,
    keeps global state for the functions of this module,.
    """
    global _state
    if _state and _state._file:
        raise RuntimeError("input() already active")
    _state = FileInput(files, inplace, backup, mode=mode, openhook=openhook,
                       encoding=encoding, errors=errors)
    return _state
def input ( files = None , inplace = False , backup = "" , * , mode = "r" , openhook = None , encoding = None , errors = None ) : global _state if _state and _state . _file : raise RuntimeError ( "input() already active" ) _state = FileInput ( files , inplace , backup , mode = mode , openhook = openhook , encoding = encoding , errors = errors ) return _state