New submission from yemiteliyadu <rmethent-ope...@yahoo.com>: 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. ---------- messages: 314530 nosy: yemiteliyadu priority: normal severity: normal status: open title: Strings beginning with underscore not removed from lists - feature or bug? type: behavior versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33157> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com