Skip to content
Snippets Groups Projects
Commit 494f1635 authored by Marco Biasini's avatar Marco Biasini
Browse files

fix segfault for BZDNG-242

The cause for this is actually a bug in Boost.Python that triggers when
arg("arg")... is used in the export and the number of arg("") arguments
doesn't match the number of argument of the function. When one then uses
a wrong kwarg, the program crashes. I'll submit a bug report to the
Boost.Python on this issue. I fear that there are many more cases in
the pymod export where we are using arg("") as we did for the query.
parent 44711e0d
No related branches found
No related tags found
No related merge requests found
......@@ -81,8 +81,8 @@ void export_Entity()
generic_prop_def<EntityBase>(ent_base);
class_<EntityHandle, bases<EntityBase> >("EntityHandle", init<>())
.def("Select",select_query, arg("flags")=0)
.def("Select",select_string, arg("flags")=0)
.def("Select",select_query, (arg("query"), arg("flags")=0))
.def("Select",select_string, (arg("query"), arg("flags")=0))
.def("FindChain", &EntityHandle::FindChain)
.def("FindResidue", &EntityHandle::FindResidue)
.def("FindAtom", &EntityHandle::FindAtom)
......
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