Re: Setting property for current class from property in an different class...

2017-09-07 Thread Christopher Reimer via Python-list
On 9/6/2017 9:26 PM, Christopher Reimer wrote: On Sep 6, 2017, at 9:14 PM, Stefan Ram wrote: I can run this (your code) without an error here (Python 3.6.0), from a file named "Scraper1.py": I'll check tomorrow. I recently switched from 3.5.x to 3.6.1 in the PyCharm IDE. It's probably FU

Re: Setting property for current class from property in an different class...

2017-09-06 Thread Christopher Reimer
> On Sep 6, 2017, at 9:14 PM, Stefan Ram wrote: > > I can run this (your code) without an error here (Python 3.6.0), > from a file named "Scraper1.py": I'll check tomorrow. I recently switched from 3.5.x to 3.6.1 in the PyCharm IDE. It's probably FUBAR in some obscure way. Thanks, Chris R.

Re: Setting property for current class from property in an different class...

2017-09-06 Thread Christopher Reimer via Python-list
On 9/6/2017 7:41 PM, Stefan Ram wrote: The following code runs here: Your code runs but that's not how I have mine code set up. Here's the revised code: class Requestor(object):     def __init__(self, user_id, user_name ):     self._page_start = -1     @property     def page_start(sel

Setting property for current class from property in an different class...

2017-09-06 Thread Christopher Reimer via Python-list
Greetings, 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. class Scraper(object):     def __init__(self, user_id, user_name):     self.requestor