Re: On Lists and Iterables

2017-12-15 Thread John Lenton
On 15 December 2017 at 10:40, Xen wrote: > > Zipping by definition produces a list of tuples No it's not. That's how it was defined in python 2, yes. The definition changed for 3. This is _more_ friendly, because in 2 you could very easily inadvertently use up a lot more memory than you were wan

Re: Python2 demotion (moving from main to universe) in progress

2017-12-15 Thread Colin Watson
On Fri, Dec 15, 2017 at 03:38:20AM +0100, Xen wrote: > Colin Watson schreef op 09-12-2017 13:51: > > Even as somebody generally very sympathetic to the needs of > > localisation, I've got this wrong because Python 2 had just too many > > ways to make mistakes in this area. > > So you are basically

On Lists and Iterables

2017-12-15 Thread Xen
I am just posting this so I don't have to save the text. 2.7: type(zip(["a","b"], ["c","d"])) 3 : type(zip(["a","b"], ["c","d"])) 3 : zip(["a","b"], ["c","d"]) 2.7: zip(["a","b"], ["c","d"]) [('a', 'c'), ('b', 'd')] 3 : list(zip(["a","b"], ["c","d"])) [('a', 'c

Re: Python2 demotion (moving from main to universe) in progress

2017-12-15 Thread Xen
Daniel Watkins schreef op 15-12-2017 0:05: On Thu, Dec 14, 2017 at 11:45:23PM +0100, Xen wrote: The move towards Python 3 was forced, it didn't come natural for anyone. Nope, I have preferred Python 3 since ~3.3, and the transition has happened over _more than a decade_. So you waited till 3