Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12553 > unrolled thread

Re: Constructors...BIIIIG PROBLEM!

Started byHegedüs Ervin <airween@gmail.com>
First post2011-09-01 10:24 +0200
Last post2011-09-01 10:24 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Constructors...BIIIIG PROBLEM! Hegedüs Ervin <airween@gmail.com> - 2011-09-01 10:24 +0200

#12553 — Re: Constructors...BIIIIG PROBLEM!

FromHegedüs Ervin <airween@gmail.com>
Date2011-09-01 10:24 +0200
SubjectRe: Constructors...BIIIIG PROBLEM!
Message-ID<mailman.651.1314865577.27778.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web