pwtools.common.pop_from_list

pwtools.common.pop_from_list(lst, items)[source]

Pop all items from lst and return a shorter copy of lst.

Parameters:
  • lst (list)

  • items (sequence)

Returns:

lst2 – Copy of lst with items removed.

Return type:

list