How do I find out from inside pdb which namespace contains an object?

Jonathan Mark jonathansamuel at yahoo.com
Sun Aug 3 17:35:57 EDT 2008


I am inside a Pdb-like Plone debugging tool and I get the following
error at the prompt. I was wondering how to find out from inside the
debugger which namespace the collective.dancing.channel object is
located in. :

collective.dancing.channel.tool_added(DelegateNichols.portal_newsletters,
None)
collective.dancing.channel.tool_added(DelegateNichols.portal_newsletters,
None)
002
Traceback (most recent call last):
  File "<input>", line 1, in ?
NameError: name 'collective' is not defined



More information about the Python-list mailing list