Hamed Elahi <hamed.elah...@gmail.com> added the comment:
Windows 10 Home Python 3.7.3 [MSC v.1916 64 bit (AMD64)] on win32 I open the file so etc.: settings_file = open('settings.txt','r') settings = [line.strip() for line in settings_file.readlines()] # Filter out comments and empties settings = [line for line in settings if (line!='' and line[0] != '#')] I attach the .txt file. I think the problem can be because of that line, because, before windows update, I used this .txt file and the first 4 parts of its content has been used to begin the program, but now, it sees that as None. The problem is with my new folders, when I create a new folder. It works different there, but in the old folders, it works as before. ---------- Added file: https://bugs.python.org/file48992/settings.txt _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40035> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com