Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65167
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Subject | Re: __init__ is the initialiser |
| Date | 2014-02-01 13:38 +1100 |
| References | <lcgtpf$tui$1@ger.gmane.org> <lcgut2$b8r$1@ger.gmane.org> <52EC0A86.7060102@stoneleaf.us> <lchm3c$uqd$1@ger.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6245.1391222310.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: __init__ is the initialiser Ben Finney <ben+python@benfinney.id.au> - 2014-02-01 13:38 +1100
csiph-web