How to implement an automatically expiring variable in python? For example, Let the program running For one hour. I want implement an array of 6 variables, each variable in
You can use the time module to clear the "array" every 10 minutes, by checking the time interval from when the script starts.
time
The last example on http://effbot.org/librarybook/time.htm point you in the right direction.