On Thu, Mar 15, 2012 at 11:32 AM, Steven W. Orr wrote:
> Question 1:
>
> I have a class A with one attribute and I define __get__ and __set__ for
> that class. Then I create another class B that uses it.
>
> Why does B require that the instance of A be a class variable in B and not
> created as an
Question 1:
I have a class A with one attribute and I define __get__ and __set__ for that
class. Then I create another class B that uses it.
Why does B require that the instance of A be a class variable in B and not
created as an instance variable in __init__?
E.g.,
# This works fine.
class