python: add __repr__ for rs_pair

* spot/twa/acc.hh: Hide default constructors, so that we can have
keyword arguments on the main constructor.
* python/spot/impl.i: Add __repr__.
* tests/python/setacc.py: Test it.
This commit is contained in:
Alexandre Duret-Lutz 2018-11-01 22:10:25 +01:00
parent 5bb9c87d4c
commit c3b7a691e4
3 changed files with 29 additions and 5 deletions

View file

@ -1135,8 +1135,10 @@ namespace spot
/// false in Streett, and true in Rabin.
struct SPOT_API rs_pair
{
#ifndef SWIG
rs_pair() = default;
rs_pair(const rs_pair&) = default;
#endif
rs_pair(acc_cond::mark_t fin, acc_cond::mark_t inf):
fin(fin),