2011-03-01から1ヶ月間の記事一覧
Python 2.6.4 Ideone.com | Online Python Interpreter & Debugging Tool import types class A(object): def __init__(self, l): self.list = l def foo(self, i): return self.list[i] # print A.__getitem__ ## => AttributeError: type object 'A' has n…