[ create a new paste ] login | about

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

Python, pasted on Jun 24:
1
2
3
4
class C(object):
    def f(x):
        return x
print C.__dict__


Output:
1
{'__dict__': <attribute '__dict__' of 'C' objects>, '__module__': '__main__', '__weakref__': <attribute '__weakref__' of 'C' objects>, '__doc__': None, 'f': <function f at 0x40345a3c>}


Create a new paste based on this one


Comments: