Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()
ChaoticNeutralCzech@feddit.org 1 week agoYes. If it’s empty. But in cases where you need to check, it might as well not be.
Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()
ChaoticNeutralCzech@feddit.org 1 week agoYes. If it’s empty. But in cases where you need to check, it might as well not be.