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.
Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()
catloaf@lemm.ee 1 week agoYou can make that assumption at your own peril.
iAvicenna@lemmy.world 1 week ago
WhyJiffie@sh.itjust.works 1 week ago
I don’t think they are a minority