[Python-Dev] Possible bug in class-init, lookin for mentors
Mark Lawrence
breamoreboy at yahoo.co.uk
Fri Apr 21 16:31:47 EDT 2017
On 21/04/2017 16:03, Guyzmo via Python-Dev wrote:
> On Fri, Apr 21, 2017 at 11:47:24AM +0200, Justus Schwabedal wrote:
>> At least I think it's a bug. Maybe it's a feature..
>
> it's indeed a feature.
>
>> I possibly found a bug in class __init__ and would like to fix it
>
> technically, it's a method. More precisely, it's the constructor method.
>
No, __new__ is the constructor, __init__ is the initializer. It is
completely impossible to state when a Python object has been initialised
as you can throw in attributes any time you like.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Python-Dev
mailing list