diff --git a/modules/mol/base/pymod/export_bond.cc b/modules/mol/base/pymod/export_bond.cc index 5dc6e6503fdc9ce9038e595fd3a78384c1e37d56..215f9a37d99c304642f99985f516da658f93064a 100644 --- a/modules/mol/base/pymod/export_bond.cc +++ b/modules/mol/base/pymod/export_bond.cc @@ -44,6 +44,7 @@ void export_Bond() .add_property("bond_order", &BondHandle::GetBondOrder, &BondHandle::SetBondOrder) + .add_property("valid", &BondHandle::IsValid) .def("GetFirst", &BondHandle::GetFirst) .def("GetSecond",&BondHandle::GetSecond) .def("GetOther",&BondHandle::GetOther) @@ -55,6 +56,8 @@ void export_Bond() .def(self == self) .def(self != self) .def(self_ns::str(self)) + .def("__hash__", &BondHandle::GetHashCode) + .add_property("hash_code", &BondHandle::GetHashCode) ; generic_prop_def<BondHandle>(bond_handle); class_<BondHandleList>("BondHandleList", no_init)