I\'m new to Python. My question is, what is the best way to count the number of python objects for keeping track of number of objects exist at any given time? I thought of u
I would implement the following
class baseMENUS: """A class used to display a Menu"""
iMenuNumber = 0 def __init__ (self, iSize): baseMENUS.iMenusNumber += 1 self.iMenuSize = iSize def main(): objAutoTester = baseMENUS(MENU_SIZE_1) .... .... .... objRunATest = baseMENUS(MENU_SIZE_2)