Re: for x,y in word1, word2 ?

2008-08-12 Thread Raja Baz
On Sun, 10 Aug 2008 21:40:55 -0700, Mensanator wrote: On Aug 10, 11:18�pm, ssecorp [EMAIL PROTECTED] wrote: Is there a syntax for looping through 2 iterables at the same time? for x in y: � � for a in b: is not what I want. I want: for x in y and for a in b: Something like this? a

Re: raw_input on several lines

2008-08-03 Thread Raja Baz
On Sat, 02 Aug 2008 21:58:09 +0200, TP wrote: Hi everybody, When using raw_input(), the input of the user ends when he types Return on his keyboard. How can I change this behavior, so that another action is needed to stop the input? For example, CTRL-G. It would allow the user to input

Re: very large dictionary

2008-08-01 Thread Raja Baz
On Fri, 01 Aug 2008 14:47:17 +0100, Sion Arrowsmith wrote: Simon Strobl [EMAIL PROTECTED] wrote: I tried to load a 6.8G large dictionary on a server that has 128G of memory. I got a memory error. I used Python 2.5.2. How can I load my data? Let's just eliminate one thing here: this server is

Re: very large dictionary

2008-08-01 Thread Raja Baz
On Fri, 01 Aug 2008 14:47:17 +0100, Sion Arrowsmith wrote: Simon Strobl [EMAIL PROTECTED] wrote: I tried to load a 6.8G large dictionary on a server that has 128G of memory. I got a memory error. I used Python 2.5.2. How can I load my data? Let's just eliminate one thing here: this server is

Re: Newbie having issues with threads

2008-08-01 Thread Raja Baz
On Thu, 31 Jul 2008 14:09:12 -0700, James Calivar wrote: I'm a newbie trying to write a script that uses threads. I'm right now a little bit stuck in understanding why the code snippet I wrote doesn't seem to be entering the function defined in the start_new_thread() call. If I run it as