Beginner's Question (or bug in python?)

Rolf Magnus ramagnus at zvw.de
Tue Apr 24 10:13:13 EDT 2001


Dennis Baker wrote:

> On Fri, 20 Apr 2001 16:47:52 +0200 Rolf Magnus <ramagnus at zvw.de> wrote:
> 
> I Think what you want to do is below... Your problem with the naming (Fred
> vs Hans) is probably due to running the application in the IDE, most of
> the Python IDEs do not clear out the namespace when you rerun a script so
> it was probably just due to a poluted namespace...

No IDE, I directly ran it on the command line.

> I think you just wanted to create a new class (No inheritance from Fred)

No, I wanted to inherit.


> The __init__ and __del__ methods are called implicitly in the declaration
> of
> the class you don't need to call them.  Also,  you would never pass self
> to a class (Unless you wanted to pass the current instance of the current
> class)

I just wanted to execute the constructor and destructor of the base class.




More information about the Python-list mailing list