@abhi9u@lemmy.world to Technology@lemmy.worldEnglish • 4 days agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square112fedilinkarrow-up1175arrow-down123
arrow-up1152arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.com@abhi9u@lemmy.world to Technology@lemmy.worldEnglish • 4 days agomessage-square112fedilink
How does Python know if it’s my list or not?
Telemetry
else: # not my list, it is ourlist
Python likes giving lists.