Author yemiteliyadu
Recipients yemiteliyadu
Date 2018-03-27.15:15:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522163751.07.0.467229070634.issue33157@psf.upfronthosting.co.za>
In-reply-to
Content
Strings beginning with underscore not removed from lists
Reproducible as shown below:

Python 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 12:04:33) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> test = ["a","_a","b","_b"]
>>> for i in test: print(i)
... 
a
_a
b
_b
>>> for i in test: test.remove(i)
... 
>>> test
['_a', '_b']
>>> 

Is this a feature or a bug?
A search through the docs did not show any mention of this.
History
Date User Action Args
2018-03-27 15:15:51yemiteliyadusetrecipients: + yemiteliyadu
2018-03-27 15:15:51yemiteliyadusetmessageid: <1522163751.07.0.467229070634.issue33157@psf.upfronthosting.co.za>
2018-03-27 15:15:51yemiteliyadulinkissue33157 messages
2018-03-27 15:15:51yemiteliyaducreate