@[email protected] to [email protected]English • 1 year agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square145fedilinkarrow-up1220arrow-down125
arrow-up1195arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.com@[email protected] to [email protected]English • 1 year agomessage-square145fedilink
minus-square@[email protected]linkfedilinkEnglish3•1 year agoYou can make that assumption at your own peril.
minus-squareAvicennalinkfedilinkEnglish3•1 year agoIf anything len tells you that it is a sequence or a collection, “not” does not tell you that. That I feel like is the main point of my objection.
You can make that assumption at your own peril.
I don’t think they are a minority
If anything len tells you that it is a sequence or a collection, “not” does not tell you that. That I feel like is the main point of my objection.