Skip to content

Commit 41c4fc1

Browse files
presentation: make throw_if_bad_alphabet_or_rules more robust
1 parent 8891bee commit 41c4fc1

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/present.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,11 +1235,14 @@ are created by taking quotients of free semigroups or monoids.
12351235
:returns: the GAP string.
12361236
:rtype: str
12371237
)pbdoc");
1238-
m.def("presentation_throw_if_bad_inverses",
1239-
&presentation::throw_if_bad_inverses<Word>,
1240-
py::arg("p"),
1241-
py::arg("vals"),
1242-
R"pbdoc(
1238+
m.def(
1239+
"presentation_throw_if_bad_inverses",
1240+
[](Presentation_ const& p, Word const& inverses) {
1241+
presentation::throw_if_bad_inverses(p, inverses);
1242+
},
1243+
py::arg("p"),
1244+
py::arg("vals"),
1245+
R"pbdoc(
12431246
:sig=(p: Presentation, vals: Word) -> None:
12441247
:only-document-once:
12451248

0 commit comments

Comments
 (0)