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

<- View Parent
ChaoticNeutralCzech@feddit.org ⁨1⁩ ⁨week⁩ ago

The list is not necessarily empty. If you were sure it was, why check?

source
Sort:hotnewtop