Re: [Tutor] REPL format

2015-04-26 Thread Steven D'Aprano
On Sun, Apr 26, 2015 at 12:57:57PM +0100, Alan Gauld wrote: > On 26/04/15 02:28, Jim Mooney wrote: > > >Another question - why does the first assignment work but not the second. I > >can see it's a syntax error but if Py can unpack in the first case why > >can't it unpack the same thing in the sec

Re: [Tutor] REPL format

2015-04-26 Thread Alan Gauld
On 26/04/15 02:28, Jim Mooney wrote: Another question - why does the first assignment work but not the second. I can see it's a syntax error but if Py can unpack in the first case why can't it unpack the same thing in the second? I'm not sure what you expect it to unpack. Its already a variabl

Re: [Tutor] REPL format

2015-04-26 Thread Jim Mooney Py3winXP
On 25 April 2015 at 21:28, Steven D'Aprano wrote: > What REPL are you using? I can't reproduce what you are > reporting in the standard Python 3.3 interactive interpreter. When I > print the transit_info I get a single block of text: > Ah, found the problem. I was looking at PyScripter output. W

Re: [Tutor] REPL format

2015-04-26 Thread Jim Mooney
On 25 April 2015 at 17:43, Alan Gauld wrote: > know what's going on. I seem to recall you are using Python 3, > is that correct? > > I guess I should specify from now on py3 on win xp Another question - why does the first assignment work but not the second. I can see it's a syntax error but if

Re: [Tutor] REPL format

2015-04-26 Thread Steven D'Aprano
On Sat, Apr 25, 2015 at 05:38:58PM -0700, Danny Yoo wrote: > On Sat, Apr 25, 2015 at 4:38 PM, Jim Mooney wrote: > > I'm curious why, when I read and decode a binary file from the net in one > > fell swoop, the REPL prints it between parentheses, line by line but with > > no commas, like a defectiv

Re: [Tutor] REPL format

2015-04-25 Thread Steven D'Aprano
On Sat, Apr 25, 2015 at 04:38:33PM -0700, Jim Mooney wrote: > I'm curious why, when I read and decode a binary file from the net in one > fell swoop, the REPL prints it between parentheses, line by line but with > no commas, like a defective tuple. What REPL are you using? I can't reproduce what y

Re: [Tutor] REPL format

2015-04-25 Thread Alan Gauld
On 26/04/15 00:38, Jim Mooney wrote: ...it's interesting that although HTML is case-free, you have to get the case right for the java server page. getbusesforroute.jsp doesn't work. That's because its a file name and has nothing to do with HTML. The HTML is what's inside the file. ?import ur

Re: [Tutor] REPL format

2015-04-25 Thread Danny Yoo
> I would strongly discourage not using it yourself in your own > programs. Ugh. There was one too many negations there. I deserved to make that mistake, since my sentence structure was unnecessarily nested. :P I meant to say: "I would strongly discourage using literal string concatenation in

Re: [Tutor] REPL format

2015-04-25 Thread Danny Yoo
On Sat, Apr 25, 2015 at 4:38 PM, Jim Mooney wrote: > I'm curious why, when I read and decode a binary file from the net in one > fell swoop, the REPL prints it between parentheses, line by line but with > no commas, like a defective tuple. The REPL is trying to be nice here. What you're seeing

[Tutor] REPL format

2015-04-25 Thread Jim Mooney
I'm curious why, when I read and decode a binary file from the net in one fell swoop, the REPL prints it between parentheses, line by line but with no commas, like a defective tuple. I can see breaking lines visually, at \n, but if the parentheses don't mean anything I can't see including them. Or