[issue44952] list need to filter again because the continue empty str value?
New submission from py_ok <1979239...@qq.com>: I`m poor in english.please run my code,Thanks. def rv(list): for i in list: #print(type(i)) #print(i.__len__()) if (i.isspace() or i=='' or len(i)==0): list.remove(i) return list list=['k', '', '', '', 'v', '', 'e', '', '', '', '73', '', 'p', '76', ''] print(rv(list))#['k', 'v', 'e', '73', '', 'p', '76', ''] The result still have empty str,I need to filter again.The reason is more empty val is linked.is a bug?or some reason? -- components: Build messages: 399882 nosy: py_ok priority: normal severity: normal status: open title: list need to filter again because the continue empty str value? type: performance versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue44952> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44952] list need to filter again because the continue empty str value?
py_ok <1979239...@qq.com> added the comment: Thanks,Very timely resolve my problem -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44952> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44952] list need to filter again because the continue empty str value?
py_ok <1979239...@qq.com> added the comment: Yes,I remember that my error in Java,like you say it`s skiped -- 原始邮件 -- 发件人: "Python tracker"https://bugs.python.org/issue44952>;; ___ -- ___ Python tracker <https://bugs.python.org/issue44952> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com