[Python-projects] unexpected R0901
MATSUI Tetsushi
VED03370 at nifty.ne.jp
Sat Jul 28 14:02:41 CEST 2007
Hi,
The message R0901 is unexpectedly output from the following minimal
sample code.
class Class1 (object): pass
class Class2 (object): pass
class Class3 (object): pass
class Class4 (object): pass
class Class5 (Class4, Class3, Class2, Class1):
pass
The class Class5 has 4 new style class ancestors.
Or, I may think there are 5 ancestors by counting the "object".
pylint, however, reports that Class5 has 8 ancestors, i.e.
the same class "object" is counted 4 times. Is it hard to know that
they are same?
--
MATSUI "Fe2+" Tetsushi
More information about the Python-Projects
mailing list