I have the following code that reproduces a PyCharm
warning,
Expression can be simplified
This expression detects equality comparison with a boolean literal.
seq_group = []
if seq_group == []: # warning here
print("it is empty.")
if I change the code to,
if seq_group is None:
will fix the warning, but the real question is are None
and []
emplty list the same thing?
cheers