diff --git a/bindings/python/mapnik_feature.cpp b/bindings/python/mapnik_feature.cpp index 31e0434b4..0c7e6745e 100644 --- a/bindings/python/mapnik_feature.cpp +++ b/bindings/python/mapnik_feature.cpp @@ -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)