Satori Komeiji's Programming Classroom
Jul 29, 2024 · Fundamentals
Which sequence operations does Python’s list support and how are they implemented?
The article explains the various sequence‑type operations that Python lists provide—concatenation, repetition, indexing, slicing, and element assignment—detailing how each is realized in CPython through the tp_as_sequence and tp_as_mapping slots and the corresponding C functions such as list_concat, list_repeat, list_subscript, and list_ass_subscript.
CPythonc-implementationlist
0 likes · 13 min read
