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

Evaluate filter() generator before returning in get_param_names() #540

Merged
merged 1 commit into from
Nov 24, 2020
Merged

Evaluate filter() generator before returning in get_param_names() #540

merged 1 commit into from
Nov 24, 2020

Conversation

stevegolton
Copy link

See issue #527.

This patch was needed when running rosapi under ROS Noetic which uses python3 due to the difference in in the return type of the filter() function between python2 and python3. In python2, a list is returned directly, but in python 3 a generator is returned which needs to be evaluated into a list to match the expected return type of the get_param_names() function in params.py.

Also tested using the ros-melodic docker container which uses python2 and it seems to work fine.

Please let me know if this is the wrong place to submit pull requests to, or if the python3/noetic migration work is being done elsewhere?

@mvollrath
Copy link
Contributor

This is a good place for it, we've been keeping Python 2/3 compatibility in noetic.

It looks like the tests are choking on some ROS test infrastructure, maybe something in here, but I don't see an issue tracked yet.

@mvollrath
Copy link
Contributor

Tests are passing for me.

@mvollrath mvollrath merged commit 2c5d630 into RobotWebTools:develop Nov 24, 2020
@stevegolton
Copy link
Author

Thanks @mvollrath! I was struggling a little with those tests.

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