[Python-projects] Pylint bug: false error message "Module 'pysvn' has no 'wc_status_kind' member".
Sylvain Thénault
sylvain.thenault at logilab.fr
Thu Feb 8 23:08:01 CET 2007
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.
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list