Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()
jerkface@lemmy.ca 1 week agoThe main thing not
is for is coercing a truthy value into an actual bool.
Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()
jerkface@lemmy.ca 1 week agoThe main thing not
is for is coercing a truthy value into an actual bool.