A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-list/2001-April/079920.html below:

Beginner's Question (or bug in python?)

Beginner's Question (or bug in python?) 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4