Fwd: PYTHON BUG. deleting elements of list.

Nicholas Cole nicholas.cole at gmail.com
Wed Sep 9 04:17:14 EDT 2020


On Wed, Sep 9, 2020 at 8:52 AM Chris Angelico <rosuav at gmail.com> wrote:

[snip]
> And if you absolutely have to mutate in place:
>
> items[:] = [i for i in items if i not in "bcd"]

How does that work to mutate in place?


More information about the Python-list mailing list