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 <rep...@bugs.python.org> <https://bugs.python.org/issue44952> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com