1.next
http://www.cnblogs.com/sesshoumaru/p/6037922.html
2.getattr
getattr(x, 'y') is equivalent to x.y