python: make it possible to modify edges during iteration

Reported by Laurent Xu.

* python/spot/impl.i: Fix the iterator to return pointers instead of
references.  Because references are ultimately copied.
* tests/python/automata.ipynb: Add test cases.
* NEWS: Mention it.
This commit is contained in:
Alexandre Duret-Lutz 2016-07-29 16:09:54 +02:00
parent 09c6393942
commit d271dfd592
3 changed files with 215 additions and 32 deletions

3
NEWS
View file

@ -165,6 +165,9 @@ New in spot 2.0.3a (not yet released)
* Bindings for randomize() were added.
* Iterating over edges via "aut.out(s)" or "aut.edges()"
now allows modifying the edge fields.
* Under IPython the spot.ltsmin module now offers a
%%pml magic to define promela models, compile them
with spins, and dynamically load them. This is