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


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

Re: __init__ is the initialiser

Started byBen Finney <ben+python@benfinney.id.au>
First post2014-02-01 13:38 +1100
Last post2014-02-01 13:38 +1100
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: __init__ is the initialiser Ben Finney <ben+python@benfinney.id.au> - 2014-02-01 13:38 +1100

#65167 — Re: __init__ is the initialiser

FromBen Finney <ben+python@benfinney.id.au>
Date2014-02-01 13:38 +1100
SubjectRe: __init__ is the initialiser
Message-ID<mailman.6245.1391222310.18130.python-list@python.org>
Terry Reedy <tjreedy@udel.edu> writes:

> User classes lacking .__init__ usually inherit it from something other
> than object. So objects are constructed by first calling .__new__ and
> then passing the result to .__init__. The Python 3 doc should say so.

That matches my understanding, and I agree the docs should (somehow) say
that clearly.

-- 
 \     “He may look like an idiot and talk like an idiot but don't let |
  `\              that fool you. He really is an idiot.” —Groucho Marx |
_o__)                                                                  |
Ben Finney

[toc] | [standalone]


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


csiph-web