Dear All, This might be very basic question for python, but I have been struggling with it. Your help will be highly appreciated.
I have a class like below: class Event(): def __init__(self, cameraEventType="", zone=99, setDay="",setTime ="", clrTime=""): self.cameraEventType = cameraEventType self.zone = zone self.setDay = setDay self.setTime = setTime self.clrTime = clrTime I want to use array of Event class object in another class like below: class EventTimeFilter: def __init__(self): self.event[] = Event() *# Seems this is not allowed ?? * Can someone help me how can I use array of Event object in EventTimeFilter class. I planned to fill array of Event object in EventTimeFilter class method. Thanks in advance. Regards Alok
-- http://mail.python.org/mailman/listinfo/python-list