this post was submitted on 25 Oct 2024
20 points (95.5% liked)

Python

6308 readers
61 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FizzyOrange 4 points 14 hours ago (2 children)

Zero surprises. It's the same as in any other language.

[–] [email protected] 2 points 12 hours ago

And thank god for that. Theoretical computer science is still good ;)

[–] CodeMonkey 2 points 12 hours ago* (last edited 12 hours ago)

I was a bit surprised that deque is implemented as a linked list and not, for example, a ring buffer. It would mean that index reads would be constant time (though insert and delete at an index would be linear time), the opposite of using a linked list.