class Foo(object):
    def met##|hod(self):
        if random():
            return self.method()
        else:
            return 1

def call(arg):
    return arg.method()

foo = Foo()
foo.method()
foo.method

call(foo)

num = 1
num.method()

##r

class Foo(object):
    def p(self):
        if random():
            return self.p()
        else:
            return 1

def call(arg):
    return arg.p()

foo = Foo()
foo.p()
foo.p

call(foo)

num = 1
num.method()
