Message314530
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. |
|
Date |
User |
Action |
Args |
2018-03-27 15:15:51 | yemiteliyadu | set | recipients:
+ yemiteliyadu |
2018-03-27 15:15:51 | yemiteliyadu | set | messageid: <1522163751.07.0.467229070634.issue33157@psf.upfronthosting.co.za> |
2018-03-27 15:15:51 | yemiteliyadu | link | issue33157 messages |
2018-03-27 15:15:51 | yemiteliyadu | create | |
|