Setting property for current class from property in an different class...
My web scraper program has a top-level class for managing the other
classes. I went to set up a property for the top-level class that
changes the corresponding property in a different class.
??? def __init__(self, user_id, user_name):
??????? self.requestor = Requestor(user_id, user_name)
??? def page_start(self):
??????? return self.requestor.page_start
??? def page_start(self, number):
??????? self.requestor.page_start = number
I get the following error for @page_start.setter when I try to run the code.
??? AttributeError: 'Scraper' object has no attribute 'requestor'
That's either a bug or I'm doing it wrong. Or maybe both?