- 'in' operator with boost::python
- >>> myObject=MyClass()
- >>> 'abc' in myObject.keys()
- False
- >>> 'abc' in myObject
- ArgumentError: Python argument types in
- MyClass.__getitem__(MyClass, int)
- did not match the C++ signature:
- __getitem__(MyClass {lvalue}, std::string)
- 'abc' in myObject
- for i in myObject:
- if myObject[i] == 'abc':
- return true