skipping __init__ and using exploiting a class member instead

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Oct 20 09:16:12 EDT 2013


On 20/10/2013 08:09, Peter Cacioppi wrote:
>
> Personally, I find the ability of Python to subclass without overriding the constructor very elegant.
>

__new__ is the constructor which to my knowledge you've not mentioned, 
__init__ is the initialiser as mentioned by Ben Finney.

-- 
Roses are red,
Violets are blue,
Most poems rhyme,
But this one doesn't.

Mark Lawrence




More information about the Python-list mailing list