Re: [Tutor] sqlite

2016-05-13 Thread Neil D. Cerutti
On 5/3/2016 11:40 AM, Alan Gauld via Tutor wrote: On 03/05/16 10:09, Crusier wrote: I am just wondering if there is any good reference which I can learn how to program SQLITE using Python I can not find any book is correlated to Sqlite using Python. You can try my tutorial below. http://www

Re: [Tutor] How inefficient is this code?

2014-05-08 Thread Neil D. Cerutti
On 5/7/2014 8:39 PM, C Smith wrote: I see. Thanks that is exactly what I was looking for. Would your example be an instance of an object-oriented approach, compartmentalizing things into functions? One of the fun parts of Project Euler is using mathematical analysis and other tricks to improve

Re: [Tutor] xml parsing from xml

2014-05-07 Thread Neil D. Cerutti
On 5/7/2014 3:49 PM, Stefan Behnel wrote:> Neil D. Cerutti, 07.05.2014 20:04: >> In my own personal case, I partly prefer xml.sax simply because it ignores >> namespaces, a nice benefit in my cases. I wish I could make ElementTree do >> that. > > The downside of n

Re: [Tutor] xml parsing from xml

2014-05-07 Thread Neil D. Cerutti
On 5/7/2014 1:39 PM, Alan Gauld wrote: On 07/05/14 17:56, Stefan Behnel wrote: Alan Gauld, 07.05.2014 18:11: and ElementTree (aka etree). The documenation gives examples of both. sax is easiest and fastest for simple XML in big files ... I wouldn't say that SAX qualifies as "easiest". Sure,

Re: [Tutor] xml parsing from xml

2014-05-07 Thread Neil D. Cerutti
On 5/7/2014 9:13 AM, jitendra gupta wrote: Hi I just want to create a new xm file from existing xml file. so basically i want to put contry details in countryName.xml from these file. I thought to do via read a line by line with normal file handling. but there a problem with that. So i want to