Author xiang.zhang
Recipients xiang.zhang, yemiteliyadu
Date 2018-03-27.15:24:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522164261.92.0.467229070634.issue33157@psf.upfronthosting.co.za>
In-reply-to
Content
It's just the right behavior. You are modifying the list while iterating over it. It has no business of underscore.

>>> test = ['_a', 'a', '_b', 'b']
>>> for i in test: test.remove(i)
>>> test
['a', 'b']
History
Date User Action Args
2018-03-27 15:24:21xiang.zhangsetrecipients: + xiang.zhang, yemiteliyadu
2018-03-27 15:24:21xiang.zhangsetmessageid: <1522164261.92.0.467229070634.issue33157@psf.upfronthosting.co.za>
2018-03-27 15:24:21xiang.zhanglinkissue33157 messages
2018-03-27 15:24:21xiang.zhangcreate