On Sat, 27 Jun 2009, Xin Shuai wrote:
> Thus I'm wondering if overloading operator in python is not applicable?
> If mapping operator is not allowed in python, what alternatives can I use?
> If it is allowed in python, what did I miss?
I use %extend to provide __getitem__ and, if appropriate, __setitem__.