Using a class' __new__ method as a Factory: __init__ gets called twice
Using a class' __new__ method as a Factory: __init__ gets called twice Question: I encountered a strange bug in python where using the __new__ method of a class as a factory would lead to the __init__ method of the instantiated class to be called twice. The idea was originally to use the __new__ method of …