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

<- View Parent
JasonDJ@lemmy.zip ⁨6⁩ ⁨days⁩ ago

Doesn’t Python treat all empty iterables as false tho? This isn’t unique to python, is it? (though I’m not a programmer…just a dude who writes scripts every now and then)

source
Sort:hotnewtop