expose contains method (fixes infinite recursion in py3k)

This commit is contained in:
Dane Springmeyer 2013-01-10 23:11:45 -08:00
parent 1f9d863a11
commit ce4d0fcd9e

View file

@ -225,6 +225,7 @@ void export_feature()
.def("has_key", &Feature::has_key)
.add_property("attributes",&attributes)
.def("__setitem__",&__setitem__)
.def("__contains__",&__getitem__)
.def("__getitem__",&__getitem__)
.def("__getitem__",&__getitem2__)
.def("__len__", &Feature::size)