expose contains method (fixes infinite recursion in py3k)
This commit is contained in:
parent
1f9d863a11
commit
ce4d0fcd9e
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue