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

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

good point I try to initialize None collections to empty collections in the beginning but not guaranteed and len would catch it

source
Sort:hotnewtop