Pastebin

Paste #2565: No description

< previous paste - next paste>

Pasted by chrivers

Download View as text

class Foo(object):

    A = 42

    def __init__(self):
        self.B = 10

    def __getattr__(self, K):
        print K

#    def __getattribute__(self, K):
#        print K


f = Foo()
f.A
f.B
f.C

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.