__init__ is the initialiser
Ben Finney
ben+python at benfinney.id.au
Fri Jan 31 21:38:18 EST 2014
Terry Reedy <tjreedy at 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
More information about the Python-list
mailing list