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

<- View Parent
jerkface@lemmy.ca ⁨1⁩ ⁨week⁩ ago

The main thing not is for is coercing a truthy value into an actual bool.

source
Sort:hotnewtop