@abhi9u@lemmy.world to Technology@lemmy.worldEnglish • 1 month agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square135fedilinkarrow-up1216arrow-down124
arrow-up1192arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.com@abhi9u@lemmy.world to Technology@lemmy.worldEnglish • 1 month agomessage-square135fedilink
minus-square@catloaf@lemm.eelinkfedilinkEnglish3•1 month agoYou can make that assumption at your own peril.
minus-square@WhyJiffie@sh.itjust.workslinkfedilinkEnglish4•1 month agoI don’t think they are a minority
minus-square@iAvicenna@lemmy.worldlinkfedilinkEnglish3•1 month 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.