Re: Wrapping statements in Python in SPSS

2012-12-28 Thread Mitya Sirenef
On 12/28/2012 01:05 PM, Mitya Sirenef wrote: On 12/28/2012 12:55 PM, Mitya Sirenef wrote: >> On 12/28/2012 12:33 PM, alankrin...@gmail.com wrote: >>> I think 396 just comes from the end of the Python loop, without indicating which line in the loop is >> at issue. >> > >> > Here is the full co

Re: Wrapping statements in Python in SPSS

2012-12-28 Thread Mitya Sirenef
On 12/28/2012 12:55 PM, Mitya Sirenef wrote: On 12/28/2012 12:33 PM, alankrin...@gmail.com wrote: I think 396 just comes from the end of the Python loop, without indicating which line in the loop is at issue. > > Here is the full code from this section of the loop: > > > for ( > msr, brk, dmn

Re: Wrapping statements in Python in SPSS

2012-12-28 Thread Mitya Sirenef
On 12/28/2012 12:33 PM, alankrin...@gmail.com wrote: I think 396 just comes from the end of the Python loop, without indicating which line in the loop is at issue. > > Here is the full code from this section of the loop: > > > for ( > msr, brk, dmn, src, dspd1, dspd2, dspd3, dspd4, dspd5, dspd6

Re: Wrapping statements in Python in SPSS

2012-12-28 Thread alankrinsky
I think 396 just comes from the end of the Python loop, without indicating which line in the loop is at issue. Here is the full code from this section of the loop: for ( msr, brk, dmn, src, dspd1, dspd2, dspd3, dspd4, dspd5, dspd6, dspd7, dspd8, dspd9, dspd10, dspd11, dspd12, period1,

Re: Wrapping statements in Python in SPSS

2012-12-28 Thread Chris Angelico
On Sat, Dec 29, 2012 at 3:43 AM, wrote: > Chris, > > I tried placing in the format you suggested and received this error message: > > END PROGRAM. > Traceback (most recent call last): > File "", line 396, in > ValueError: incomplete format key I don't think the code I gave could produce that.

Re: Wrapping statements in Python in SPSS

2012-12-28 Thread Peter Otten
alankrin...@gmail.com wrote: > I tried placing in the format you suggested and received this error > message: > > END PROGRAM. > Traceback (most recent call last): > File "", line 396, in > ValueError: incomplete format key You seem to have a malformed format string. Example: Correct: >>> "

Re: Wrapping statements in Python in SPSS

2012-12-28 Thread alankrinsky
Chris, I tried placing in the format you suggested and received this error message: END PROGRAM. Traceback (most recent call last): File "", line 396, in ValueError: incomplete format key On Friday, December 28, 2012 11:10:10 AM UTC-5, Chris Angelico wrote: > On Sat, D

Re: Wrapping statements in Python in SPSS

2012-12-28 Thread Chris Angelico
On Sat, Dec 29, 2012 at 3:01 AM, wrote: > I am working with Python looping in SPSS. What are the limits for the > > for var1, var2, var3 in zip(Variable1, Variable2, Variable3): > > statement in the Python looping function within SPSS? I am getting an error > message, I presume because of wrappi

Wrapping statements in Python in SPSS

2012-12-28 Thread alankrinsky
I am working with Python looping in SPSS. What are the limits for the for var1, var2, var3 in zip(Variable1, Variable2, Variable3): statement in the Python looping function within SPSS? I am getting an error message, I presume because of wrapping or length. Imagine the above statement, but exp