Hi Dan,

On 03/08/2017 04:31, Dan Stromberg wrote:
>
> I put a little time into exploring __implements__ and abc.ABCMeta
> recently., in combination with pylint.
>
> I guess it's about time I started using one or both of them.
>
> I'm a little puzzled though.  It _seems_ like pylint is ignoring
> __implements__, while abc.ABCMeta appears to be working the way I'd
> expect it would.
>
> I've put some sample code at
> http://stromberg.dnsalias.org/svn/pylint-interface-experiment/trunk/
>  At that URL, pie is an __implements__ experiment, and pabce is an ABC
> experiment.
>
> I found a year-old thread on stackoverflow saying that pylint no
> longer does __implements__, which seems to fit with what I'm seeing. 
> However, the pylint doc and pylint code (internally) still appear to
> use __implements__ - so maybe I'm just doing it wrong.  The thread:
> https://stackoverflow.com/questions/20879269/why-pylint-keeps-saying-my-class-is-r0923-interface-not-implemented
>
> Assuming they both still work (__implements__ and abc.ABCMeta), which
> is preferred? Or are they a toss-up?
>
> Any suggestions on how to get __implements__ working?

since Pylint moved to github, it seems that there is little audience
here. You should probably rather raise an issue on
https://github.com/PyCQA/pylint/issues.

I don't do much pylint coding nowadays but my guess is that the check
has been removed while there are still code using __implements__
internally which has not yet been removed / updated.

Regards,


-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
https://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to