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) #743

Closed
wants to merge 2 commits into from

Conversation

eric-wieser
Copy link
Contributor

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

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
Copy link
Member

Thank you for the patch. I have created #758 which modifies the logic a bit to reduce the diff size to make it easier to review the change.

@dirk-thomas dirk-thomas closed this Mar 1, 2016
@eric-wieser
Copy link
Contributor Author

Great, thanks!

tobii-ho pushed a commit to StarkStrom-Driverless/ros_numpy that referenced this pull request Nov 18, 2023
tobii-ho pushed a commit to StarkStrom-Driverless/ros_numpy that referenced this pull request Nov 19, 2023
tobii-ho pushed a commit to StarkStrom-Driverless/ros_numpy that referenced this pull request Jan 23, 2024
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