-
Notifications
You must be signed in to change notification settings - Fork 6
issue 611: rename Larray class as Array #811
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
issue 611: rename Larray class as Array #811
Conversation
a1ead7e to
667e62b
Compare
|
The:
are the most important commits to review. |
gdementen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| class LArray(Array): | ||
| def __init__(self, *args, **kwargs): | ||
| warnings.warn("LArray has been renamed as Array.", FutureWarning, stacklevel=2) | ||
| Array.__init__(self, *args, **kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we use LArray = renamed_to(Array, 'LArray') instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename_to return a function and not a class. In addition, the printed warning message would have been LArray() is deprecated. Use Array() instead, i.e. with ( ) after class names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling a function and a class is essentially the same thing in Python (they are both callables) and I don't see the problem with that warning message.
9256ef7 to
29c0d76
Compare
Waiting for PR #809 to be merged before to finish this PR.