-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Unnecessary assignment #4
Comments
Please read again and note the difference between |
Thank you for the code review in any case. If you'd like to share how you found out about bidict and what you're using it for, I'd be interested to hear. |
Ah, it was in plain sight. Not sure why I found this suspicious. Read about this in Pycoder's Weekly: http://pycoders.com/ |
Didn't realize you were from Pycoder's Weekly. Thanks for putting bidict in this week! And I think something about the variable names makes it easy to read something like Thanks again! |
https://github.com/jab/bidict/blob/master/bidict.py#L426 - unless I miss something this looks like a unnecessary line. After doing
self._fwd = self._bwd
you are assigingself._fwd
(which already has the value ofself._bwd
) back toself._bwd
.Any reason for doing this?
The text was updated successfully, but these errors were encountered: