-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
obj = object.__new__(cls)
#57
Comments
hey, i would like to work on this. |
Thanks for the interest. You can start working on it. |
For all the classes that are inheriting from superclass Object this line should remain the same, Isn't it? |
@TarunTomar122 Yes, if class S(provided it shouldn't be def __new__(cls, ...):
obj = S.__new__(cls)
...
return obj |
Description of the problem
Currently any class object is created by,
For better readability, each such line should be replaced by the abstract superclass of that class.
Something like,
For example, in
arrays.py
,OneDimensionalArray
is created by,pydatastructs/pydatastructs/linear_data_structures/arrays.py
Line 73 in 9c32d40
However, the above should be replaced by,
Example of the problem
References/Other comments
The text was updated successfully, but these errors were encountered: