does python has a way to implement C#-like indexers? : <p>how to implement in python c# indexers-like this[int i] {get set}? In other words, how to write the follow code in python?</p>

<pre><code>public class foo{
    ...
    List&lt;foo2&gt; objfoo;
    ...
    public foo2 this[int i] {
      get{ return objfoo[i]; }}
}//end class foo

//in another class or method...
ofoo = new foo();
...
foo2 X = ofoo[3];
</code></pre>
