This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author py_ok
Recipients py_ok
Date 2021-08-19.03:56:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629345389.69.0.268716831338.issue44952@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2021-08-19 03:56:29py_oksetrecipients: + py_ok
2021-08-19 03:56:29py_oksetmessageid: <1629345389.69.0.268716831338.issue44952@roundup.psfhosted.org>
2021-08-19 03:56:29py_oklinkissue44952 messages
2021-08-19 03:56:29py_okcreate