Skip to content
Snippets Groups Projects
Commit 7b790b57 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Add support for unordered set properties

Change the Python type of `std::unordered_set` properties from `list` to `set`.
Parsers only required minor updates and special treatment of the empty
set, which can only be represented as `set()` in Python (`{}` is
reserved for dictionaries).

This will certainly break client code, i.e.
```
   MyAlg.ExtraInputs += ['foo']
```
will have to be updated to
```
  MyAlg.ExtraInputs.add('foo')
```

For the moment only `std::unordered_set` is mapped to a Python `set`.
Regular `std::set` remains as Python `list` to maintain insertion order.
parent cd9378e6
No related branches found
No related tags found
1 merge request!1503Add support for unordered set properties
Showing
with 311 additions and 17 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment