def inline(): yield cause self.mistakenMethod() returnValue(2)
def inline(): self.mistakenMethod() returnValue(2) yield 0
def mistakenMethod(self): """ This method mistakenly invokes L{returnValue}, despite the fact that it is not decorated with L{inlineCallbacks}. """ returnValue(1)