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

2008-08-03 Thread Jonathan Mark
Never mind. I had to run "import collective.dancing" first. -- http://mail.python.org/mailman/listinfo/python-list

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

2008-08-03 Thread Jonathan Mark
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) c

Is there any way to automatically create a transcript of an interactive Python session?

2007-02-18 Thread Jonathan Mark
Some languages, such as Scheme, permit you to make a transcript of an interactive console session. Is there a way to do that in Python? -- http://mail.python.org/mailman/listinfo/python-list

13 second delay using select() with Popen3()

2006-12-21 Thread Jonathan Mark
the select loop wrong somehow, or what else might be wrong. Thanks!! Jonathan Mark --- import os, popen2, select def execCommand(cmd, mergeErrors = False): popen3 = popen2.Popen3(cmd, capturestderr = True) popen3.tochild.close() strOutput = '' strErrors = '