[issue40035] Filtration of the .txt file

2020-03-21 Thread Hamed Elahi
Hamed Elahi added the comment: No, the .txt files were the same, when I sent the results. I send another .txt file to show the different, but the results were created with the same .txt file for both runs. Unfortunately, it is forbidden to send .py files. On Sat, Mar 21, 2020 at 9:05 PM Eric

[issue40035] Filtration of the .txt file

2020-03-21 Thread Eric V. Smith
Eric V. Smith added the comment: I don't see a problem here. Your first file has more lines, so it produces more output than the second file. Presumably the difference in output you see when you run your program is a result of this. But since we can't see the code, we can't know for sure. I

[issue40035] Filtration of the .txt file

2020-03-21 Thread Hamed Elahi
Hamed Elahi added the comment: I don't have any other windows to run on them, too. But, now, when I run .py file from older folders before updating windows, then I've got this problem or when I copy the folders and run .py file from these newly created folders. See here: I ran both files. S

[issue40035] Filtration of the .txt file

2020-03-21 Thread Eric V. Smith
Eric V. Smith added the comment: So are you saying that you see this problem on the current version of Windows that you're running, but whether or not you see the problem depends on if the file was created before or after you updated Windows? How are you creating these files? Does the file

[issue40035] Filtration of the .txt file

2020-03-21 Thread Hamed Elahi
Hamed Elahi 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 se

[issue40035] Filtration of the .txt file

2020-03-21 Thread Eric V. Smith
Eric V. Smith added the comment: What versions of Windows were involved? Are the versions of Python the same? What's the exact version? Best would be the 2 lines you get after running python, like: $ python3 Python 3.7.4 (default, Jul 21 2019, 14:43:25) [GCC 7.4.0] on cygwin Please provide

[issue40035] Filtration of the .txt file

2020-03-21 Thread Hamed Elahi
Hamed Elahi added the comment: Hello, I saw a problem when this line of code is used in Python 3: settings = [line for line in settings if (line!='' and line[0] != '#')] Before updating windows, this line of code filtered the texts from the beginning of .txt file, so only the first lines re

[issue40035] Filtration of the .txt file

2020-03-21 Thread Hamed Elahi
Hamed Elahi added the comment: Hello, I saw a problem when this line of code is used in Python 3: settings = [line for line in settings if (line!='' and line[0] != '#')] Before updating windows, this line of code filtered the texts from the beginning of .txt file, so only the first lines re