Re: [Python-ideas] Make map() better

2017-09-15 Thread Steven D'Aprano
On Fri, Sep 15, 2017 at 08:03:32PM +0200, Jason H wrote: > But really, I've learned a few things along the way. Though nothing to > convince me that I'm wrong or it's a bad idea. It's just not liked by > the greybeards, which I can appreciate. "here's some new punk kid, get > off my lawn!"

Re: [Python-ideas] Make map() better

2017-09-15 Thread Ethan Furman
On 09/15/2017 11:03 AM, Jason H wrote: From: "Steven D'Aprano" >> Um... what's in it for *us*? What benefit do we get? > How that question is answered, depends on who is 'us'? If you're a bunch of > python purist greybeards, then conceivably nothing. How about refugees

Re: [Python-ideas] Make map() better

2017-09-15 Thread Ned Batchelder
On 9/15/17 2:03 PM, Jason H wrote: It's just not liked by the greybeards, which I can appreciate. "here's some new punk kid, get off my lawn!" type of mentality. Dunning-Kruger, etc. I'm not sure if you meant this tongue-in-cheek or not.  The main problem with your proposal is that it would

Re: [Python-ideas] Make map() better

2017-09-15 Thread Jason H
> Sent: Friday, September 15, 2017 at 12:24 PM > From: "Steven D'Aprano" > To: python-ideas@python.org > Subject: Re: [Python-ideas] Make map() better > > Jason, > > I'm sorry if you feel that everyone is piling on you to poo-poo your > ideas, but we've heard it all

Re: [Python-ideas] Make map() better

2017-09-15 Thread Steven D'Aprano
Jason, I'm sorry if you feel that everyone is piling on you to poo-poo your ideas, but we've heard it all before. To you it might seem like "peaceful coexistence", but we already have peaceful coexistence. Python exists, and Javascript exists (to say nothing of thousands of other languages,

Re: [Python-ideas] Make map() better

2017-09-15 Thread David Mertz
On Sep 15, 2017 7:23 AM, "Jason H" wrote: Another pain point is python uses [].append() and JS uses [].join() Having a wrapper for append would be helpful. There should be one, and only one, obvious way to do it. And for that matter, why isn't append/extend a global? I can add

Re: [Python-ideas] Make map() better

2017-09-15 Thread Antoine Rozo
> And for that matter, why isn't append/extend a global? I can add things to lots of different collections. lists, sets, strings... No, append is relevant when the collection is ordered. You update dictionnaries, you make unions of sets, and you append lists to another ones. These operations are

Re: [Python-ideas] Make map() better

2017-09-15 Thread Jason H
I'm going to respond to a few replies with this one. > > Because join apply on a string, and strings are defined by the str class, > > not by a specific protocol (unlike iterables). > > Join actually used to only be available as a function (string.join in > Python 2.x). However, nobody could

Re: [Python-ideas] A PEP to define basical metric which allows to guarantee minimal code quality

2017-09-15 Thread Steven D'Aprano
Hi Alexandre, On Thu, Sep 14, 2017 at 10:58:43PM -0700, alexandre.gal...@gmail.com wrote: > But my idea is only to define basical metrics, useful to evaluate quality > code, and related to PEPs if existing. I precise i'd like to propose > informational PEP only. I'm not considering that my

Re: [Python-ideas] A PEP to define basical metric which allows to guarantee minimal code quality

2017-09-15 Thread Terry Reedy
On 9/15/2017 1:58 AM, alexandre.gal...@gmail.com wrote: Hi, Thanks for your return, and link. I knew PyCQA but not the others. It seems i didn't success to precise my idea correctly. I'm 100% OK with you that this is not language role to indicate precisely which tools to use. But my idea