Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()

<- View Parent
iknowitwheniseeit@lemmynsfw.com ⁨3⁩ ⁨days⁩ ago

You’d need to explicitly check for None if using the len() construct as well, so this doesn’t change the point of the article.

source
Sort:hotnewtop