I’m building an experiment in Psychopy in which, depending on the participants response, I append an element to a list. I’d need to remove/pop/del it after a specific amount of time has passed after it was appended (e.g. 10 seconds). I was considering creating a clock to each element added, but as I need to give a name to each clock and the number of elements created is unpredictable (dependent on the participants responses), I think I’d have to create names to each of the clocks created on the go. However, I don’t know how to do that and, on my searches about this, people usually say this isn’t a good idea.
Would anyone see a solution to the issue: remove/pop/del after a specific time has passed after appending the element?