filecmp.dircmp performance

2011-01-08 Thread dads
I'm creating a one way sync program, it's to automate backing up data over the wan from our shops to a server at head office. It uses filecmp.dircmp() but the performance seems poor to me. for x in dc.diff_files: srcfp = os.path.join(src, x) self.fn777(srcfp)

Re: sqlite3 bug?

2010-02-12 Thread dads
Thank you It just highlights that when your tired things can easily be missed and maybe you should leave things until the morning to view things with fresh eyes =) -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: sqlite3 bug?

2010-02-11 Thread wayne . dads . bell
Thank you It just highlights that when your tired things can easily be missed and maybe you should leave things until the morning to view things with fresh eyes =) -- http://mail.python.org/mailman/listinfo/python-list

sqlite3 bug?

2010-02-10 Thread dads
When the method below is run it raises 'sqlite3.OperationalError: no such table: dave'. the arguments are ds = a datestamp and w = a string of digits. The path of the db is C:\sv_zip_test\2006\2006.db and the table is definitely named dave. I've run the sql in sql manager and it works. Is this a bu

Re: searching and storing large quantities of xml!

2010-01-18 Thread dads
Thanks all, took your advice and have been playing all weekend which has been great fun. ElementTree is awesome. I created a script that organises the xml as they're in year blocks and I didn't realise the required xml is mixed up with other xml. Plus the volumes are much greater than I realised, I

searching and storing large quantities of xml!

2010-01-16 Thread dads
I work in as 1st line support and python is one of my hobbies. We get quite a few requests for xml from our website and its a long strung out process. So I thought I'd try and create a system that deals with it for fun. I've been tidying up the archived xml and have been thinking what's the best w

Re: unexplainable python

2009-09-27 Thread dads
Thank you for the help, it's amazing what you can't spot. It seems the harder you look the less likely you're to find the issue. Fresh eyes make the world of difference. To Matt and John: No this certainly isn't homework, I'm 29 and in full time work. I decided to learn to program about a year ag

Re: unexplainable python

2009-09-26 Thread dads
Sorry forgot to mention I'm using python 2.6 -- http://mail.python.org/mailman/listinfo/python-list

unexplainable python

2009-09-26 Thread dads
When creating a script that converts digits to words I've come across some unexplainable python. The script works fine until I use a 5 digit number and get a 'IndexError: string index out of range'. After looking into it and adding some print calls, it looks like a variable changes for no reason. T

Re: File Syncing

2009-06-21 Thread dads
On Jun 20, 11:21 am, Lawrence D'Oliveiro wrote: > In message > b0d7-586b1b332...@t10g2000vbg.googlegroups.com>, dads wrote: > > What would I have to learn to be able to sync the text files on each > > server? > > How big is the text file? If it's sm

File Syncing

2009-06-19 Thread dads
I've created a small application that when you click one of the buttons it randomly picks a paragraphs from a list that it generates from a text file and then copies them to the clipboard. It also has make new/edit/delete/print/ etc functionality. It's for work so I get some brownie points and eve

Re: Good books in computer science?

2009-06-15 Thread dads
I remember someone earlier in the thread mentioning reading source code from good coders. I've been wanting to give this a go as it makes perfect sense, I suppose the standard library would be a good start. What would your recommendations be, something not too too hard, so I don't understand. -- h

Re: Good books in computer science?

2009-06-14 Thread dads
I'm wanting to purchase some of the titles that have been raised in this thread. When I look they are very expensive books which is understandable. Do you think getting earlier editions that are cheaper is a daft thing or should I fork out the extra £10-£30 to get the latest edition? -- http://ma