Re: [Tutor] is there an explicit eof to test in Py 3?

2013-04-22 Thread Oscar Benjamin
On 22 April 2013 02:35, Jim Mooney wrote: > I'm reading a book that suggests finding EOF when the readLine == "" > > But wouldn't that end erroneously on blank lines, that really contain > '\n', in which case more lines might follow? What 'empties' are > considered equal in Python? I'm coming f

Re: [Tutor] multiple versions of python on windows?

2013-04-22 Thread Andy McKenzie
I have no idea on Wing, but I'm using Eclipse with the PyDev plugin, and I'm able to associate projects with either Python 2.7 or 3.2 in Windows. It checks for correct grammar in each, and if I tell it to run as a Python script, it uses the correct executable. So if you're not tied to Wing, you m

Re: [Tutor] 3to2?

2013-04-22 Thread Wayne Werner
On Sun, 21 Apr 2013, Steven D'Aprano wrote: On 21/04/13 04:32, Jim Mooney wrote: I was looking at google pengine for python and it only supports 2.7. I've installed 3 and would rather not go back (I kept doing Print without the parentheses for awhile and it was really annoying ;') So the quest

[Tutor] Why is my list index going out of range

2013-04-22 Thread Jim Mooney
Okay, what am I doing wrong here? I'm generating primes from a list and getting "list index out of range," but since the for loops controls the indexes I don't see how that's happening. I thought it was the list append, but I commented that out and put in a print statement, and I still got the line

Re: [Tutor] Why is my list index going out of range

2013-04-22 Thread Mitya Sirenef
On 04/22/2013 09:47 PM, Jim Mooney wrote: Okay, what am I doing wrong here? I'm generating primes from a list and getting "list index out of range," but since the for loops controls the indexes I don't see how that's happening. I thought it was the list append, but I commented that out and put in

Re: [Tutor] Why is my list index going out of range

2013-04-22 Thread Dave Angel
On 04/22/2013 09:47 PM, Jim Mooney wrote: Okay, what am I doing wrong here? I'm generating primes from a list and getting "list index out of range," but since the for loops controls the indexes I don't see how that's happening. I thought it was the list append, but I commented that out and put in