A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-April/147791.html below:

[Python-Dev] Possible bug in class-init, lookin for mentors

[Python-Dev] Possible bug in class-init, lookin for mentorsMark 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4