To remove a variable / object in Python I always use:
del variable
del [variable1, variable2] # removing multiple variables
How can I extend this, so I can delete all variables / objects ending with a certain pattern?
The reason I'm asking is that I'd like to remove all my temporary objects. I always name these such that they end with _tmp
.