Re: [Python-ideas] Vectorization [was Re: Add list.join() please]

2019-01-31 Thread Robert Vanden Eynde
I love moredots ❤️ With pip install funcoperators, one can implement the *dotmul* iff dotmul can be implemented as a function. L *dotmul* 1 Would work. Or even a simple tweak to the library would allow L *dot* s to be [x*s for x in L] and L /dot/ s to be [x/s for x in L]" I'd implement somethi

Re: [Python-ideas] Vectorization [was Re: Add list.join() please]

2019-01-31 Thread David Allemang
I accidentally replied only to Steven - sorry! - this is what I said, with a typo corrected: > a_list_of_strings..lower() > > str.lower.(a_list_of_strings) I much prefer this solution to any of the other things discussed so far. I wonder, though, would it be general enough to simply have this new

Re: [Python-ideas] Add list.join() please

2019-01-31 Thread Terry Reedy
On 1/31/2019 12:51 PM, Chris Barker via Python-ideas wrote: I do a lot of numerical programming, and used to use MATLAB and now numpy a lot. So I am very used to "vectorization" -- i.e. having operations that work on a whole collection of items at once. Example: a_numpy_array * 5 multiplies

[Python-ideas] Vectorization [was Re: Add list.join() please]

2019-01-31 Thread Steven D'Aprano
On Thu, Jan 31, 2019 at 09:51:20AM -0800, Chris Barker via Python-ideas wrote: > I do a lot of numerical programming, and used to use MATLAB and now numpy a > lot. So I am very used to "vectorization" -- i.e. having operations that > work on a whole collection of items at once. [...] > You can ima

Re: [Python-ideas] AMEND PEP-8 TO DISCOURAGE ALL CAPS

2019-01-31 Thread Mikhail V
On Thu, Jan 31, 2019 at 4:59 AM Abe Dillon wrote: > [Steven D'Aprano] >> >> It seems strange that you are so worried about >> the microsecond or so extra reading time it takes to recognize an >> all-caps word, based on the "shape of the word" model, yet are prepared >> to pay this enormous cost p

Re: [Python-ideas] Add list.join() please

2019-01-31 Thread Chris Angelico
On Fri, Feb 1, 2019 at 4:51 AM Chris Barker wrote: > I know that when I'm used to working with numpy and then need to do some > string processing or some such, I find myself missing this "vectorization" -- > if I want to do the same operation on a whole bunch of strings, why do I need > to writ

Re: [Python-ideas] Add list.join() please

2019-01-31 Thread David Mertz
On Thu, Jan 31, 2019 at 12:52 PM Chris Barker via Python-ideas < python-ideas@python.org> wrote: > I know that when I'm used to working with numpy and then need to do some > string processing or some such, I find myself missing this "vectorization" > -- if I want to do the same operation on a whol

Re: [Python-ideas] Add list.join() please

2019-01-31 Thread Chris Barker via Python-ideas
On Wed, Jan 30, 2019 at 10:14 PM Chris Angelico wrote: > > I didn't, but I don't know if Chris Barker did. > nope -- not me either :-) > (Can't swing a cat without hitting someone named Steve or Chris, in > some spelling or another!) > good thing there aren't a lot of cats being swung around,

Re: [Python-ideas] AMEND PEP-8 TO DISCOURAGE ALL CAPS

2019-01-31 Thread Marcos Eliziario
You cited articles, but all of them in the context of reading prose, not code. What I was asking where papers describing controlled experiments with a good cross section of programmers with different skill levels against a good cross-section of different project and team sizes. Reading code has som

Re: [Python-ideas] AMEND PEP-8 TO DISCOURAGE ALL CAPS

2019-01-31 Thread Paul Moore
On Thu, 31 Jan 2019 at 02:09, Chris Angelico wrote: > Time to take this to python-list? Better still, let's just drop it. Paul ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: h