[Python-projects] Type inference not working?
Maarten ter Huurne
maarten.ter.huurne at philips.com
Wed Jan 23 18:27:07 CET 2008
Hi,
If I run the following code fragment through PyLint:
===
class SomeClass(object):
def __m(self):
pass
SomeClass().__m()
===
I get this warning: (among others)
===
W: 6:SomeClass: Access to a protected member __m of a client class
===
It doesn't matter if I put that line in the class body, in a static method
or in an instance method.
I know that type inference can be difficult to get right in some cases, but
this case seems simple enough. Am I expecting too much or is there a bug
somewhere?
pylint 0.14.0,
astng 0.17.2, common 0.22.1
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
Bye,
Maarten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.logilab.org/pipermail/python-projects/attachments/20080123/0ffac5a4/attachment.htm
More information about the Python-Projects
mailing list