[ create a new paste ] login | about

Link: http://codepad.org/Lwcgbj7Z    [ raw code | output | fork ]

glyph - Python, pasted on Oct 28:
1
2
3
4
5
class x(object):
  def __getattribute__(self, o):
    print o

x()[3]


Output:
1
2
3
4
Traceback (most recent call last):
  Line 5, in <module>
    x()[3]
TypeError: 'x' object is unindexable


Create a new paste based on this one


Comments: