Re: Howto flaten a list of lists was (Explanation of this Python language feature)

2014-03-29 Thread Mark Lawrence
On 29/03/2014 03:21, Rustom Mody wrote: On Saturday, March 29, 2014 8:34:19 AM UTC+5:30, Mark H. Harris wrote: On 3/28/14 9:33 PM, Steven D'Aprano wrote: Mark, please stop posting to the newsgroup comp.lang.python AND the mailing list (...). They mirror each other. Your posts are not so

Re: Howto flaten a list of lists was (Explanation of this Python language feature)

2014-03-29 Thread mm0fmf
On 28/03/2014 22:12, Mark Lawrence wrote: As for the stupid symbol that you're using, real programmers don't give a damn about such things, they prefer writing plain, simple, boring code that is easy to read What he said. -- https://mail.python.org/mailman/listinfo/python-list

Re: Howto flaten a list of lists was (Explanation of this Python language feature)

2014-03-28 Thread Mark Lawrence
On 28/03/2014 21:56, Mark H Harris wrote: On Fri, Mar 21, 2014 at 1:42 PM, vasudevram vasudev...@gmail.com wrote: Can anyone - maybe one of the Python language core team, or someone with knowledge of the internals of Python - can explain why this code works, and whether the different

Re: Howto flaten a list of lists was (Explanation of this Python language feature)

2014-03-28 Thread Mark H Harris
On 3/28/14 5:12 PM, Mark Lawrence wrote: No. This has to be a better way to flatten lists: from functools import reduce import operator as λ reduce(λ.add, l) [1, 2, 3, 4, 5, 6, 7, 8, 9] Why reinvent yet another way of flattening lists, particulary one that doesn't use the far more

Re: Howto flaten a list of lists was (Explanation of this Python language feature)

2014-03-28 Thread Steven D'Aprano
Mark, please stop posting to the newsgroup comp.lang.python AND the mailing list python-list@python.org. They mirror each other. Your posts are not so important that we need to see everything twice. -- Steven D'Aprano http://import-that.dreamwidth.org/ --

Re: Howto flaten a list of lists was (Explanation of this Python language feature)

2014-03-28 Thread Mark H Harris
On 3/28/14 9:33 PM, Steven D'Aprano wrote: Mark, please stop posting to the newsgroup comp.lang.python AND the mailing list python-list@python.org. They mirror each other. Your posts are not so important that we need to see everything twice. Its not my fault, Steven. Something goofy is going

Re: Howto flaten a list of lists was (Explanation of this Python language feature)

2014-03-28 Thread Chris Angelico
On Sat, Mar 29, 2014 at 2:04 PM, Mark H Harris harrismh...@gmail.com wrote: Its not my fault, Steven. Something goofy is going on. My address says only comp.lang.python Well, something's causing your messages to come out multiple times and with different subject lines :) ChrisA --

Re: Howto flaten a list of lists was (Explanation of this Python language feature)

2014-03-28 Thread Rustom Mody
On Saturday, March 29, 2014 8:34:19 AM UTC+5:30, Mark H. Harris wrote: On 3/28/14 9:33 PM, Steven D'Aprano wrote: Mark, please stop posting to the newsgroup comp.lang.python AND the mailing list (...). They mirror each other. Your posts are not so important that we need to see everything

Re: Howto flaten a list of lists was (Explanation of this Python language feature)

2014-03-28 Thread Mark H Harris
On 3/28/14 10:21 PM, Chris Angelico wrote: Well, something's causing your messages to come out multiple times and with different subject lines :) I changed the subject line ( which I did twice because the first post said it had an error and did not post; which apparently was a lie).