Like in most reasonable languages. Linked lists would be a terrible implementation for a list where grabbing arbitrary indices is explicitly supported.
Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()
dreugeworst@lemmy.ml 11 months agowhy comment if you don’t even want to read the article? python lists are not linked lists, they’re contiguous with a smart growth strategy.
sugar_in_your_tea@sh.itjust.works 11 months ago
borokov@lemmy.world 11 months ago
I comment because this is how a social network works, and this is how you keep lemmy alive. My comment has generated a dozen of other comments, so he achieved his goal.
There is not a single question that’s already have been answered on internet, so there no point on asking anything on social plateforms except just for the sake of interacting with other peoples.
Lemmy is not stackoverflow 😉
dreugeworst@lemmy.ml 11 months ago
If the point of Lemmy is just to generate as many comments as possible with everyone just assuming whatever they want about linked articles without reading them I’ll quickly leave again. I’m here for informed discussion, not for a competition in generating engagement