def __init__(self, file_list=sys.argv[1:]):
        """Set all instance variables.

        If no files are specified (either passed in or from sys.argv[1:]),
        then sys.stdin is then used by making the only file '-'.

        """
        if file_list:
            if isinstance(file_list,str):
                self.__file_list = [file_list]
            else:
                self.__file_list = file_list
        else:
            self.__file_list = list('-')
        self.__current_file=''
        self.__relative_cnt = 0
        self.__absolute_cnt = 0
        self.__flags = 0
Set all instance variables.

        If no files are specified (either passed in or from sys.argv[1:]),
        then sys.stdin is then used by making the only file '-'.

        
recipes/Python/112506_fileinput_as_a_generator/recipe-112506.py