Re: [Tutor] 2 vs 3

2015-09-07 Thread Mark Lawrence
On 07/09/2015 12:34, Steven D'Aprano wrote: On Mon, Sep 07, 2015 at 11:32:32AM +0200, Laura Creighton wrote: In a message of Mon, 07 Sep 2015 10:16:16 +0100, Alan Gauld writes: And of course if you are really moving to the v3 way of doing things you should move to using the new string formatti

Re: [Tutor] 2 vs 3

2015-09-07 Thread Sithembewena Lloyd Dube
This has turned into a very interesting discussion. Thank you to everyone who's participating and sharing nuggets of information on 2 vs 3. On Mon, Sep 7, 2015 at 1:58 PM, Steven D'Aprano wrote: > On Mon, Sep 07, 2015 at 11:01:00AM +0100, Alan Gauld wrote: > > On 07/09/15 10:32, Laura Creighton

Re: [Tutor] Creating lists with definite (n) items without repetitions

2015-09-07 Thread Oscar Benjamin
On 5 September 2015 at 23:28, Mark Lawrence wrote: > On 05/09/2015 10:09, Peter Otten wrote: >> >>> the 5 lists above do not match my task insofar as every of the 5 lists >>> contains 'a' and 'b' which should occur only once, hence my count of a >>> maximum of 301 lists, which might nor be correc

Re: [Tutor] 2 vs 3

2015-09-07 Thread Steven D'Aprano
On Mon, Sep 07, 2015 at 11:01:00AM +0100, Alan Gauld wrote: > On 07/09/15 10:32, Laura Creighton wrote: > >In a message of Mon, 07 Sep 2015 10:16:16 +0100, Alan Gauld writes: > > > >>And of course if you are really moving to the v3 way of > >>doing things you should move to using the new string > >

Re: [Tutor] 2 vs 3

2015-09-07 Thread Steven D'Aprano
On Mon, Sep 07, 2015 at 11:32:32AM +0200, Laura Creighton wrote: > In a message of Mon, 07 Sep 2015 10:16:16 +0100, Alan Gauld writes: > > >And of course if you are really moving to the v3 way of > >doing things you should move to using the new string > >formatting style. > > I don't think there

Re: [Tutor] 2 vs 3

2015-09-07 Thread Alan Gauld
On 07/09/15 10:32, Laura Creighton wrote: In a message of Mon, 07 Sep 2015 10:16:16 +0100, Alan Gauld writes: And of course if you are really moving to the v3 way of doing things you should move to using the new string formatting style. I don't think there is any great push to prefer the new

Re: [Tutor] 2 vs 3

2015-09-07 Thread Laura Creighton
In a message of Mon, 07 Sep 2015 10:16:16 +0100, Alan Gauld writes: >And of course if you are really moving to the v3 way of >doing things you should move to using the new string >formatting style. I don't think there is any great push to prefer the new style over the old style 'just because' whe

Re: [Tutor] Syntax error and EOL Error

2015-09-07 Thread Alan Gauld
On 07/09/15 01:40, Nym City via Tutor wrote: Hello, Thank you for your response. I have made updates and here is the new code: import csv DomainList = [] domains = open('domainlist.csv', 'rb') DomainList = csv.reader(domains) DomainList = [column[1] for column in DomainList(str.rstrip('/'))] S

Re: [Tutor] 2 vs 3

2015-09-07 Thread Alan Gauld
On 07/09/15 02:15, Grady Martin wrote: On 2015年09月05日 23時33分, Alan Gauld wrote: Once you get used to it - and it is a big jump, don't underestimate the learning time - v3 is superior. This is the first I've heard someone describe the learning curve from 2 to 3 in anything but negligible terms.

Re: [Tutor] 2 vs 3

2015-09-07 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 21:15:52 -0400, Grady Martin writes: >On 2015年09月05日 23時33分, Alan Gauld wrote: >>Once you get used to it - and it is a big jump, don't >>underestimate the learning time - v3 is superior. > >This is the first I've heard someone describe the learning curve from 2 to 3

Re: [Tutor] Syntax error and EOL Error

2015-09-07 Thread Nym City via Tutor
Hello, Thank you for your response. I have made updates and here is the new code: import csv DomainList = [] domains = open('domainlist.csv', 'rb') DomainList = csv.reader(domains) DomainList = [column[1] for column in DomainList(str.rstrip('/'))] print(DomainList) For "DomainList = [column[1] for

Re: [Tutor] 2 vs 3

2015-09-07 Thread Grady Martin
On 2015年09月05日 23時33分, Alan Gauld wrote: Once you get used to it - and it is a big jump, don't underestimate the learning time - v3 is superior. This is the first I've heard someone describe the learning curve from 2 to 3 in anything but negligible terms. What makes the jump big?