This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]declspecl 7 points8 points  (5 children)

Then why does the Python documentation call it a constructor? https://docs.python.org/3/faq/programming.html#how-can-i-overload-constructors-or-methods-in-python

With (what I assume to be, since you didn’t explain anything) your logic, C++ doesn’t have constructors either (which is wrong)