I would like to be able to create a list of all instances of a class. Another post here described how to do it by appending to a list during the __init__ routine but since I am a real Python newbie (and even more of a newbie to classes) I was hoping someone could post a simple code example to show a real world example of this. Thanks in advance.
instances = 
t = Thingy()
for i in range(5):
""" My output -->
[<__main__.Thingy object at 0x7f0581777c50>, <__main__.Thingy object at 0x7f0581777c90>, <__main__.Thingy object at 0x7f0581777cd0>, <__main__.Thingy object at 0x7f0581777d10>, <__main__.Thingy object at 0x7f0581777d50>]
The main problem is that Thingy objects are immortal unless you empty the list periodically.
#define A 3// name a constant
long int booking_ID ; ...