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

Preserve identity of numpy_msg(T) #758

Merged
merged 2 commits into from Mar 1, 2016
Merged

Preserve identity of numpy_msg(T) #758

merged 2 commits into from Mar 1, 2016

Conversation

dirk-thomas
Copy link
Member

Replaces #743.

I have modified the logic a bit to reduce the diff size to make it easier to review the change.

This makes `numpy_msg(T) is numpy_msg(T)` always return true.
Otherwise, it is impossible to check whether a message is of a numpy type or not, since `isinstance(numpy_msg(T)(), numpy_msg(T))` would always return false
dirk-thomas added a commit that referenced this pull request Mar 1, 2016
Preserve identity of `numpy_msg(T)`
@dirk-thomas dirk-thomas merged commit 6d2eecc into indigo-devel Mar 1, 2016
@dirk-thomas dirk-thomas deleted the update_pr743 branch March 1, 2016 19:15
rsinnet pushed a commit to MisoRobotics/ros_comm that referenced this pull request Jun 19, 2017
Preserve identity of `numpy_msg(T)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants