RE: pymysql KeyError

2013-04-10 Thread Chris Green
> Add a > > print(newrecord) > > before the > > dbcur.execute(...) > > line and tell us what it shows. I'm guessing that for one of the values in > it you forgot to call a method written in C, e. g. > > >>> [42].pop > > >>> type(_) > > > instead of > > >>> [42].pop() > 42 > Thank you Peter - that

Re: pymysql KeyError

2013-04-10 Thread Peter Otten
Chris Green wrote: > Hello everyone, greetings from Hong Kong. > > I'm a relative noob with Python and have managed to break it. I'm hoping > someone would be kind enough to help out, or perhaps just point me in the > right direction. > > I've written a program which pulls in an XML document fro