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

ManifestManager.list() should return a list #220

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

ivanpauno
Copy link
Contributor

In python3 this is returning a "dict_keys", that for example broke code like this:

self.allnames = sorted(list(set(rospack.list() + rosstack.list()))) 

because the + operator isn't supported by dict_keys.

See this and this comments.
Downstream packages can also fix this directly, but it would be better if the list() method actually returned a python list.

In python3 this is returning a "dict_keys", that for example broke code like this:

```python3
self.allnames = sorted(list(set(rospack.list() + rosstack.list()))) 
```

because the `+` operator isn't supported by `dict_keys`.

See [this](ros-visualization/rqt_dep#15 (comment)) and [this](ros-visualization/rqt_dep#15 (comment)) comments.
Downstream packages can also fix this directly, but it would be better if the `list()` method actually returned a python `list`.
@wxmerkt
Copy link

wxmerkt commented May 10, 2021

@cottsay Friendly ping - any thoughts on this PR? Tools like rqt_dep are broken in Noetic and having this fix incorporated would go a long way in getting them back operational :-).

@cottsay cottsay self-assigned this Oct 15, 2021
@cottsay cottsay merged commit 6a4ee5e into ros-infrastructure:master Oct 15, 2021
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

3 participants