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

<- View Parent
iAvicenna@lemmy.world ⁨1⁩ ⁨week⁩ ago

If anything len tells you that it is a sequence or a collection, “not” does not tell you that. That I feel like is the main point of my objection.

source
Sort:hotnewtop