Skip to content
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

Test for equality to None with 'is' instead of '==' #355

Merged
merged 5 commits into from Jan 23, 2019

Conversation

daniel-s-ingram
Copy link
Contributor

No description provided.

Copy link
Member

@tfoote tfoote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is None is better than == None https://jaredgrubb.blogspot.com/2009/04/python-is-none-vs-none.html

But if we're going to clean this up we don't have a specific meanig for None so generic false check is even cleaner. https://stackoverflow.com/questions/7152441/python-if-not-val-vs-if-val-is-none

tf2_ros/src/tf2_ros/buffer_interface.py Outdated Show resolved Hide resolved
tf2_ros/src/tf2_ros/buffer_interface.py Outdated Show resolved Hide resolved
tf2_ros/src/tf2_ros/buffer_client.py Outdated Show resolved Hide resolved
tf2_ros/src/tf2_ros/buffer_client.py Outdated Show resolved Hide resolved
tfoote and others added 4 commits January 23, 2019 09:27
Co-Authored-By: daniel-s-ingram <ingramds@appstate.edu>
Co-Authored-By: daniel-s-ingram <ingramds@appstate.edu>
Co-Authored-By: daniel-s-ingram <ingramds@appstate.edu>
Co-Authored-By: daniel-s-ingram <ingramds@appstate.edu>
@tfoote tfoote merged commit d714a65 into ros:melodic-devel Jan 23, 2019
@tfoote
Copy link
Member

tfoote commented Jan 23, 2019

Thanks for the cleanup and iteration!

seanyen pushed a commit to ms-iot/geometry2 that referenced this pull request Mar 22, 2021
It has always been disabled in ROS 2.  I don't think we have
plans at the moment to reenable, so just remove it.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants