Re: Not Responding When Dealing with Large Data

2014-06-19 Thread MRAB
On 2014-06-19 17:21, Peter Pearson wrote: On Thu, 19 Jun 2014 12:25:23 +0100, MRAB wrote: [snip] and then you can say: def myCase(c): if len(c) < 8 or len(c) > 80: return False if c in mySet: return False return True which can be sho

Re: Not Responding When Dealing with Large Data

2014-06-19 Thread Peter Pearson
On Thu, 19 Jun 2014 12:25:23 +0100, MRAB wrote: [snip] > and then you can say: > > def myCase(c): > if len(c) < 8 or len(c) > 80: > return False > > if c in mySet: > return False > > return True > > which can be shortened to: > > def m

Re: Not Responding When Dealing with Large Data

2014-06-19 Thread MRAB
On 2014-06-19 09:17, cutey Love wrote: update_idletasks didn't work. The code is this file_path = filedialog.askopenfilename(filetypes=[('text files', '.txt')], multiple=True, defaultextension=".txt") for path in file_path: fo = open(path, "r") for line in fo:

Re: Not Responding When Dealing with Large Data

2014-06-19 Thread cutey Love
update_idletasks didn't work. The code is this file_path = filedialog.askopenfilename(filetypes=[('text files', '.txt')], multiple=True, defaultextension=".txt") for path in file_path: fo = open(path, "r") for line in fo: if myCase(line.lowe

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Ian Kelly
On Wed, Jun 18, 2014 at 4:32 PM, cutey Love wrote: > Hi, thanks for the replies, > > I mean windows displays "Not responding close the program now" > > How can I do it asynconistrically? > > It's simple code just open file, loop through line by line and do some > comparons with the string. If al

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Paul McNett
On 6/18/14, 3:32 PM, cutey Love wrote: Hi, thanks for the replies, I mean windows displays "Not responding close the program now" How can I do it asynconistrically? It's simple code just open file, loop through line by line and do some comparons with the string. To get anything better from

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread cutey Love
Hi, thanks for the replies, I mean windows displays "Not responding close the program now" How can I do it asynconistrically? It's simple code just open file, loop through line by line and do some comparons with the string. On Wednesday, June 18, 2014 6:20:13 PM UTC+1, cutey Love wrote: > I'm

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Paul McNett
On 6/18/14, 10:20 AM, cutey Love wrote: I'm trying to read in 10 lines of text, use some functions to edit them and then return a new list. How is it that you are opening the file, and iterating the contents? The problem is my program always goes not responding when the amount of lines

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Michael Torrie
On 06/18/2014 11:20 AM, cutey Love wrote: > I'm trying to read in 10 lines of text, use some functions to > edit them and then return a new list. > > The problem is my program always goes not responding when the amount > of lines are a high number. > > I don't care how long the program takes

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread John Gordon
In <00d330e3-fc8a-4b7e-b2bd-f1a48bc33...@googlegroups.com> cutey Love writes: > The problem is my program always goes not responding when the amount of > lines are a high number. > I don't care how long the program takes to work, just need it to stop > crashing? How long have you tried waiting

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Tim
On Wednesday, June 18, 2014 1:20:13 PM UTC-4, cutey Love wrote: > I'm trying to read in 10 lines of text, use some functions to edit them > and then return a new list. > The problem is my program always goes not responding when the amount of lines > are a high number. > I don't care how long

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Philip Dexter
On Wed, Jun 18, 2014 at 1:20 PM, cutey Love wrote: > I'm trying to read in 10 lines of text, use some functions to edit them > and then return a new list. > > The problem is my program always goes not responding when the amount of lines > are a high number. > > I don't care how long the prog

Not Responding When Dealing with Large Data

2014-06-18 Thread cutey Love
I'm trying to read in 10 lines of text, use some functions to edit them and then return a new list. The problem is my program always goes not responding when the amount of lines are a high number. I don't care how long the program takes to work, just need it to stop crashing? -- https://ma