It seems like _loop was declared protected and should not be accessed from this context.
Prefixing a member variable _ is usually regarded as the equivalent of
declaring it with protected visibility that exists in other languages.
Consequentially, such a member should only be accessed from the same class or
a child class:
classMyParent:def__init__(self):self._x=1;self.y=2;classMyChild(MyParent):defsome_method(self):returnself._x# Ok, since accessed from a child classclassAnotherClass:defsome_method(self,instance_of_my_child):returninstance_of_my_child._x# Would be flagged as AnotherClass is not# a child class of MyParent
It seems like _loop was declared protected and should not be accessed from this context.
Prefixing a member variable _ is usually regarded as the equivalent of
declaring it with protected visibility that exists in other languages.
Consequentially, such a member should only be accessed from the same class or
a child class:
classMyParent:def__init__(self):self._x=1;self.y=2;classMyChild(MyParent):defsome_method(self):returnself._x# Ok, since accessed from a child classclassAnotherClass:defsome_method(self,instance_of_my_child):returninstance_of_my_child._x# Would be flagged as AnotherClass is not# a child class of MyParent
It seems like _loop was declared protected and should not be accessed from this context.
Prefixing a member variable _ is usually regarded as the equivalent of
declaring it with protected visibility that exists in other languages.
Consequentially, such a member should only be accessed from the same class or
a child class:
classMyParent:def__init__(self):self._x=1;self.y=2;classMyChild(MyParent):defsome_method(self):returnself._x# Ok, since accessed from a child classclassAnotherClass:defsome_method(self,instance_of_my_child):returninstance_of_my_child._x# Would be flagged as AnotherClass is not# a child class of MyParent
It seems like _loop was declared protected and should not be accessed from this context.
Prefixing a member variable _ is usually regarded as the equivalent of
declaring it with protected visibility that exists in other languages.
Consequentially, such a member should only be accessed from the same class or
a child class:
classMyParent:def__init__(self):self._x=1;self.y=2;classMyChild(MyParent):defsome_method(self):returnself._x# Ok, since accessed from a child classclassAnotherClass:defsome_method(self,instance_of_my_child):returninstance_of_my_child._x# Would be flagged as AnotherClass is not# a child class of MyParent
It seems like _loop was declared protected and should not be accessed from this context.
Prefixing a member variable _ is usually regarded as the equivalent of
declaring it with protected visibility that exists in other languages.
Consequentially, such a member should only be accessed from the same class or
a child class:
classMyParent:def__init__(self):self._x=1;self.y=2;classMyChild(MyParent):defsome_method(self):returnself._x# Ok, since accessed from a child classclassAnotherClass:defsome_method(self,instance_of_my_child):returninstance_of_my_child._x# Would be flagged as AnotherClass is not# a child class of MyParent
It seems like _loop was declared protected and should not be accessed from this context.
Prefixing a member variable _ is usually regarded as the equivalent of
declaring it with protected visibility that exists in other languages.
Consequentially, such a member should only be accessed from the same class or
a child class:
classMyParent:def__init__(self):self._x=1;self.y=2;classMyChild(MyParent):defsome_method(self):returnself._x# Ok, since accessed from a child classclassAnotherClass:defsome_method(self,instance_of_my_child):returninstance_of_my_child._x# Would be flagged as AnotherClass is not# a child class of MyParent
Prefixing a member variable
_
is usually regarded as the equivalent of declaring it with protected visibility that exists in other languages. Consequentially, such a member should only be accessed from the same class or a child class: