Re: detaching comprehensions

2017-09-08 Thread Ian Kelly
On Fri, Sep 8, 2017 at 3:03 PM, Peter Otten <__pete...@web.de> wrote: *"bar", > ('b', 'a', 'r') Now that just makes my eyes hurt. -- https://mail.python.org/mailman/listinfo/python-list

Re: detaching comprehensions

2017-09-08 Thread bob gailer
I don't know whether you wanted a reply, since you did not ask for one. I am not even sure what your point is. See other comments below. On 9/8/2017 4:24 PM, Stefan Ram wrote: Maybe you all know this, but to me this is something new. I learnt it by trial and error in the Python 3.6.0 cons

Re: detaching comprehensions

2017-09-08 Thread Peter Otten
Stefan Ram wrote: > Maybe you all know this, but to me this is something new. > I learnt it by trial and error in the Python 3.6.0 console. > > Most will know list comprehensions: > > |>>> [ i for i in range( 3, 5 )] > |[3, 4] > > I found out that the comprehension can be detached from

Re: detaching comprehensions

2017-09-08 Thread Ian Kelly
On Fri, Sep 8, 2017 at 2:24 PM, Stefan Ram wrote: > Maybe you all know this, but to me this is something new. > I learnt it by trial and error in the Python 3.6.0 console. > > Most will know list comprehensions: > > |>>> [ i for i in range( 3, 5 )] > |[3, 4] > > I found out that the compre