Problem slicing a list with the C API

Chris Angelico rosuav at gmail.com
Sat Mar 12 16:57:27 EST 2022


On Sun, 13 Mar 2022 at 08:54, Jen Kris <jenkris at tutanota.com> wrote:
>
>
> pDictData, despite the name, is a list of 2-tuples where each 2-tuple is a dictionary object and a string.
>

Ah, gotcha. In that case, yeah, slicing it will involve referencing
the tuples all the way down the line (adding to their refcounts, so if
there's a borked one, kaboom).

ChrisA


More information about the Python-list mailing list