Constructors...BIIIIG PROBLEM!

Hegedüs Ervin airween at gmail.com
Thu Sep 1 04:24:29 EDT 2011


hello,

On Thu, Sep 01, 2011 at 10:00:27AM +0200, Michiel Overtoom wrote:
> On Sep 1, 2011, at 09:48, Amogh M S wrote:
[...]
> > class S:
> >    def _init_(self, name=None):
> >        self.name = name
> > s = S("MyName")
> 
> Two things: Derive your class from object,

why's that better than just create a simple class, without
derive?


thanks:

a.




More information about the Python-list mailing list