Jason Novinger@programming.devM to Python@programming.dev · 3 days agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square52fedilinkarrow-up163arrow-down14
arrow-up159arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comJason Novinger@programming.devM to Python@programming.dev · 3 days agomessage-square52fedilink
minus-squareMichal@programming.devlinkfedilinkarrow-up6·2 days agoIt’s just how pythonic code is written. All python developers know that not and bool can indicate that variable is either empty or null. They will also use the in operator and other python specific syntax.
It’s just how pythonic code is written. All python developers know that
not
andbool
can indicate that variable is either empty or null. They will also use thein
operator and other python specific syntax.