Removed __new__ from Tree and its subclasses
Having both __new__ and __init__ in the same class that also has subclasses can lead to problems, and easily becomes very unreadable. I removed the __new__ method and put its functionality into __init__ instead. I also updated the ValueError's for the Immutable classes.
Showing
Please
register
or
sign in
to comment