-
Notifications
You must be signed in to change notification settings - Fork 313
Closed
Labels
Description
Description of the problem
Currently any class object is created by,
obj = object.__new__(cls)For better readability, each such line should be replaced by the abstract superclass of that class.
Something like,
obj = <name_of_abstract_super_class>.__new__(cls)For example, in arrays.py, OneDimensionalArray is created by,
| obj = object.__new__(cls) |
However, the above should be replaced by,
obj = Array.__new__(cls)