On Sat, Oct 28, 2023 at 08:05 PM, John wrote:
or maybe better use a semaphore or lock to do things properly, as copying the
list won't prevent another potential conflict when resetting the list to
list()
Yes, I'm not sure if a deep copy alone will suffice. But... this is what I meant by "make the smallest possible (but complete) standalone unit test". The test should focus on experimentally confirming your uncertain suspicions; it's a judgement call. Naturally there's no need to confirm what you already know.