Re: xpath prob, was Re: Why is there no functional xml?

2018-01-25 Thread Rustom Mody
On Wednesday, January 24, 2018 at 2:31:22 PM UTC+5:30, Peter Otten wrote: > Rustom Mody wrote: > > > With > > # Read above xml > with open('soap_response.xml') as f: inp = etree.parse(f) > > # namespace dict > nsd = {'soap': "http://schemas.xmlsoap.org/soap/envelope/";, 'locns': > "

Re: exec and traceback

2018-01-25 Thread Ned Batchelder
On 1/22/18 3:22 AM, ken...@gameofy.com wrote: I'm using exec() to run a (multi-line) string of python code. If an exception occurs, I get a traceback containing a stack frame for the string. I've labeled the code object with a "file name" so I can identify it easily, and when I debug, I find