r/Python • u/declspecl • 3d ago
Discussion Constructors: __init__, __new__, both, neither?
Hi all, I'm doing some research on what programmers believe is the class constructor in Python. I made a poll here: https://strawpoll.com/05ZdzVzdmn6 and would appreciate all responses, thanks!
0
Upvotes
2
u/pbecotte 3d ago
Considering the python object model, "constructor" would be very ambiguous defined. I could see a legitimate argument for all four answers. Unless you're just trying to get an idea of what percentage of your respondents actually understand the object model?