Hacker News new | ask | show | jobs
by scrollaway 1229 days ago
len will count the object whereas “not” will only check for truthiness. This can matter in cases where counting takes significantly longer; for example, a sql query set.