Personal tools
You are here: Home Open Source Misc How examn which method is calling another
Document Actions

How examn which method is calling another

by Christian Heimes last modified 2004-08-14 19:54

Using python's introspection you can easily examn which method was calling another using the caller stack

import inspect

def prstack():
    for e in inspect.stack():
        print e[1:]

# Insert prstack() somewhere in your code
# Start zope using bin/runzope or bin/zopectl fg
# You'll see the caller stack

Powered by Plone CMS, the Open Source Content Management System