Email Problem with __init__ and inheritance

to
Sylvain Thenault <syt at logilab dot fr>
subject
Problem with __init__ and inheritance
date
2005/02/11 15:10
Problem with __init__ and inheritance

Hello Sylvain,
with pyLint 0.6.0 there seem to be still some problems with inheritance:

a.) variable initializations done in explicitly called __init__() methods from inherited classes are not considered and we get Errors E0203 for these.

E0203: 37:SeeTelnet.readUntilArray: Access to member 'cookedq' before its definition line 42
E0203: 41:SeeTelnet.readUntilArray: Access to member 'cookedq' before its definition line 42

See attached telnetexample.py
<<telnetexample.py>>
b.) We get very often R0903: Not enough public methods (1/2) in cases, where we inherit from a class with 'many' methods, but just one method is being overriden.

For me this no bad code.


Best Regards / Mit freundlichen Grüßen
 
Gerhard Kring

    Siemens AG
    Communications
    Com CD NI DB D

    St.-Martin-Str. 76
    D-81541 München
    Room: 5531/356
                                                    
    T.+49-89-636-76219
    Mobile +49-178-7700355

        Email: Gerhard.Kring@siemens.com



has reply