209
Python Performance: Why 'if not list' is 2x Faster Than Using len()
(blog.codingconfessions.com)
This is a most excellent place for technology news and articles.
Yes, the first example does the same thing, but there's still less to mentally parse. Ideally you should just use
if len(mylist) == 0:
.