On 08 janvier 13:22, Martin Pool wrote: > As the subject says, this line gives a warning but should not: > > super(self, Foo)._bar() > > tmarek observed to me that it would be nice to do some type inference on > checking for protected methods, and I agree it would be nice, because then > this would work too: > > a=self;a._protected_method() > > However, calling a protected method on a super object is a pretty common > case, so I think this is a step forward as it is.
Patch applied, many thanks and happy new year Martin ! -- 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 [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
