[Tutor] Read a matrix with lines in different behavior

2014-05-23 Thread Felipe Melo
Hello, I want to read the below matrix, identify when the characters in front of "want = " are equal to "1" and then save in an array and in an output file the characters above. But I don't know how to identify the second line and store in a variable: alpha=0 beta=2 gamma=50 want = 0 alpha=0

Re: [Tutor] Doubts about installing python3.1 in squeeze

2014-05-23 Thread Markos
On 22-05-2014 13:22, Alex Kleider wrote: On 2014-05-22 06:17, Markos wrote: Hi, I'm learning Python and I'm using Debian 6.0 (squeeze) The installed version is 2.6.6. (python -V) I have seen some recommendations for beginners to invest in version 3. I found package of Python 3.1 in repositor

[Tutor] cgi.FieldStorage() causing thread.error: can't allocate lock

2014-05-23 Thread SABARWAL, SHAL
Wondering if anyone came across this error in using form = cgi.FieldStorage() import tempfile File /tempfile.py", line 83, in _once_lock = _allocate_lock() thread.error: can't allocate lock puthon version 2.7, on HP-UX 11.11 ___

Re: [Tutor] Read a matrix with lines in different behavior

2014-05-23 Thread Mark Lawrence
On 23/05/2014 13:23, Felipe Melo wrote: Hello, I want to read the below matrix, identify when the characters in front of "want = " are equal to "1" and then save in an array and in an output file the characters above. But I don't know how to identify the second line and store in a variable: alp

Re: [Tutor] cgi.FieldStorage() causing thread.error: can't allocate lock

2014-05-23 Thread Alan Gauld
On 23/05/14 12:57, SABARWAL, SHAL wrote: Wondering if anyone came across this error in using form = cgi.FieldStorage() import tempfile File /tempfile.py", line 83, in _once_lock = _allocate_lock() thread.error: can't allocate lock puthon version

Re: [Tutor] Read a matrix with lines in different behavior

2014-05-23 Thread Peter Otten
Felipe Melo wrote: > Hello, > > I want to read the below matrix, identify when the characters in front of > "want = " are equal to "1" and then save in an array and in an output file > the characters above. But I don't know how to identify the second line and > store in a variable: > > alpha=0 b