Skip to content

Commit

Permalink
Inline callbacks stacktrace.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavisp3 committed Aug 11, 2010
1 parent 1c55ecb commit c080df1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions inline-callbacks/inline-callbacks-tb.py
@@ -0,0 +1,15 @@

import traceback

from twisted.internet.defer import inlineCallbacks

@inlineCallbacks
def my_callbacks():
yield 1
traceback.print_stack()
from twisted.internet import reactor
reactor.stop()

from twisted.internet import reactor
reactor.callWhenRunning(my_callbacks)
reactor.run()

0 comments on commit c080df1

Please sign in to comment.