-
Notifications
You must be signed in to change notification settings - Fork 77
Sessions 7, 8, 9 Homework #90
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
Conversation
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.
You need to be consistent here. In one case you are returning a new object, and in the other you are returning the original object changed. You should almost certainly be returning a new object. If you want a function that returns the same object changed, you would use the augmented assignment (iadd, for example). You are correct that the reflected operator (rmul, below) would return the same thing as the normal operator (here and in most cases), and is often just a call to its non-reflected equivalent.
|
Made some comments on homework. Will send an email about project, since we have an updated version. |
Homework for the last three sessions (7,8,9)