[New-bugs-announce] [issue44952] list need to filter again because the continue empty str value?
py_ok
report at bugs.python.org
Wed Aug 18 23:56:29 EDT 2021
New submission from py_ok <1979239641 at 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 <report at bugs.python.org>
<https://bugs.python.org/issue44952>
_______________________________________
More information about the New-bugs-announce
mailing list