Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()
48954246@lemmy.world 6 months agoAn iterable is just something that can be iterated over, like range(10), or [1, 2, 3].
A sequence on the other hand is a Collection that is reversible.
gravitas_deficiency@sh.itjust.works 6 months ago
I know what an iterable is. But I am talking about
Type[Iterable], which iirc does not obey falsey eval when empty.