[Python-ideas] JavaScript-Style Object Creation in Python (using a constructor function instead of a class to create objects)
Steven D'Aprano
steve at pearwood.info
Sun May 14 07:18:31 EDT 2017
On Sun, May 14, 2017 at 11:12:21AM +0400, Abdur-Rahmaan Janhangeer wrote:
> Whatever you all propose,
>
> coming from a java and c++ background, OOP in python is quite cumbersome.
In what way it is cumbersome?
> if you tell that i am not a python guy, then consider that current oop
> style does not reflect python's style of ease and simplicity
That is one opinion.
> is __init__ really a good syntax choice?
I don't understand the question. Are you complaining about the name
"__init__"? Do you think it would be easier to write if it was spelled
"init" or "new" or "Constructor"?
--
Steve
More information about the Python-ideas
mailing list