Expression can be simplified on list

Daiyue Weng daiyueweng at gmail.com
Mon Sep 12 07:14:01 EDT 2016


Hi, I found that when I tried to make an equality test on empty like,

if errors == []:

PyCharm always warns me,

Expression can be simplified.

I am wondering what's wrong and how to fix this?

cheers



More information about the Python-list mailing list