Skip to content
genpy
Python EmberScript CMake
Latest commit e58459e Nov 19, 2015 @masasin masasin committed with dirk-thomas Add __ne__ magic method.
In Python 2, if you do not define a magic method, such as `__eq__`  for equality, or `__ne__` for inequality, it defaults to comparing the object IDs, which are random. That causes checking for inequality (`msg_1 != msg_2`) to work unexpectedly. (i.e., even if the messages are equal, it would return True.) In fact, the [Python 2 docs](https://docs.python.org/2/reference/datamodel.html#basic-customization) say that it is best to add them too.

In Python 3, `__ne__` is simply the inverse of `__eq__` if it is not defined.

Test adding the __ne__ magic method.
Failed to load latest commit information.
cmake Fix python executable on Windows. Dec 17, 2013
doc
scripts
src/genpy
test Add __ne__ magic method. Jun 3, 2016
.gitignore
CHANGELOG.rst
CMakeLists.txt
README
package.xml
rosdoc.yaml converting to ROS package Oct 7, 2011
setup.py

README

./scripts/genmsg_py.py -p std_msgs -Istd_msgs:`rospack find std_msgs`/msg -o gen `rospack find std_msgs`/msg/String.msg
./scripts/genmsg_py.py -p geometry_msgs -Istd_msgs:`rospack find std_msgs`/msg -Igeometry_msgs:`rospack find geometry_msgs`/msg -o gen `rospack find geometry_msgs`/msg/PoseStamped.msg
Something went wrong with that request. Please try again.