[Python-projects] Pylint bug: false error message "Module 'pysvn' has no 'wc_status_kind' member".
Barry Scott
barry.scott at onelan.co.uk
Fri Feb 9 11:19:23 CET 2007
Sylvain Thénault wrote:
> On Thursday 08 February à 16:55, Barry Scott wrote:
>
>> Carsten Koch wrote:
>>
>>> Test case:
>>>
>>> % pylint --version
>>> pylint 0.12.2,
>>> astng 0.16.3, common 0.21.2
>>> Python 2.5 (r25:51908, Jan 9 2007, 16:59:32)
>>> [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)]
>>> % pylint -r n pylint_bug.py
>>> ************* Module pylint_bug
>>> E: 9: Module 'pysvn' has no 'wc_status_kind' member
>>> cko/hp> python pylint_bug.py
>>> wc_status_kind
>>> <wc_status_kind object at 0x8059fdc>
>>> % cat pylint_bug.py
>>> """
>>> pylint bug - pylint shows a false
>>> "Module 'pysvn' has no 'wc_status_kind' member"
>>> error message.
>>> """
>>> __revision__ = "1"
>>> import pysvn
>>> print dir(pysvn)[-1]
>>> print pysvn.wc_status_kind
>>>
>>>
>> Is pylint failing to find wc_status_kind because its defined in a python
>> extension?
>>
>> The pysvn module import * from _pysvn and _pysvn is an extension.
>>
>
> well, it might be if _pysvn C defined objects don't have __module__
> correctly set to '_pysvn' in this case.
What do you mean by correctly set? How does pylint figure out the members of
an extension module? Why do you need __module__ set and on what?
I happy to change pysvn to get this working once I understand the issue.
Barry
More information about the Python-Projects
mailing list