New submission from Hamed Elahi <hamed.elah...@gmail.com>:

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 remained after filtration, but 
now, after windows update, it filters the texts so that the last rows of .txt 
file will remain after filtration.
Shouldn't a line of code acts the same in different updates?

----------
components: Windows
messages: 364763
nosy: Hamed, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: ilteration of the .txt file
type: behavior
versions: Python 3.7

_______________________________________
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

Reply via email to