Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Chris Angelico
On Tue, Aug 14, 2018 at 7:58 AM, Greg Ewing wrote: > Chris Angelico wrote: >> >> No, lambda calculus isn't on par with brakes - but anonymous functions >> are, and if they're called "lambda", you just learn that. > > > It's like saying that people would find it easier to learn to > drive if "brake

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread MRAB
On 2018-08-14 02:46, Michael Selik wrote: On Mon, Aug 13, 2018, 5:48 PM Greg Ewing > wrote: Chris Angelico wrote: > No, lambda calculus isn't on par with brakes - but anonymous functions > are, and if they're called "lambda", you just lear

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread David Mertz
Pedantically, Python's lambda isn't even the same thing as in the lambda calculus. The mathematical abstraction is always curried, and neither Python nor most languages that use the spelling 'lambda' do that. So even assuming users must learn technical vocabulary, this is an inaccurate such term.

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Michael Selik
On Mon, Aug 13, 2018, 5:48 PM Greg Ewing wrote: > Chris Angelico wrote: > > No, lambda calculus isn't on par with brakes - but anonymous functions > > are, and if they're called "lambda", you just learn that. > > It's like saying that people would find it easier to learn to > drive if "brakes" we

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Greg Ewing
Chris Angelico wrote: No, lambda calculus isn't on par with brakes - but anonymous functions are, and if they're called "lambda", you just learn that. It's like saying that people would find it easier to learn to drive if "brakes" were called "stoppers" or something. I don't think that's true.

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Abe Dillon
[Steven D'Aprano] > - I accept that there've been a few cases where I could have > chosen my words better, and consequently I've rubbed Abe > the wrong way; sorry about that Abe, as I said earlier (and > I meant it) I have no grudge against you. Thank you. I hold no grudge against you eith

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Greg Ewing
Abe Dillon wrote: [Bruce Leban] Lambda calculus IS computer science. It's a foundation of computer science. That doesn't mean it "IS" computer science. Set theory is a foundation of computer science. It's still it's own discipline. Lambda calculus is considered a part of computers scie

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Steven D'Aprano
TL;DR - I accept that there've been a few cases where I could have chosen my words better, and consequently I've rubbed Abe the wrong way; sorry about that Abe, as I said earlier (and I meant it) I have no grudge against you. - The most important technical issue I wanted to get from my d

Re: [Python-ideas] Conduct on python-ideas

2018-08-13 Thread Abe Dillon
I can respect that. I'll take a week off the list and try to check myself in the future. I'm sorry to everyone on python-ideas. I'm sorry Steven. On Mon, Aug 13, 2018 at 2:38 PM, Brett Cannon wrote: > I'm starting a new thread on this to make sure it receives appropriate > visibility for everyon

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Chris Angelico
On Tue, Aug 14, 2018 at 6:26 AM, Abe Dillon wrote: > [Chris Angelico] >> >> > The whole point of a programming language is to bridge the gap between >> > machine code and natural language (in Python's case English, as with >> > most >> > other languages). It's to make reading and writing code easi

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Abe Dillon
[Chris Angelico] > > The whole point of a programming language is to bridge the gap between > > machine code and natural language (in Python's case English, as with most > > other languages). It's to make reading and writing code easier through > > abstraction, not to create ivory towers through t

[Python-ideas] Conduct on python-ideas

2018-08-13 Thread Brett Cannon
I'm starting a new thread on this to make sure it receives appropriate visibility for everyone on this list. *There are ramifications for those involved in this whole situation* as outlined at the end of this email. To review, this mailing list operates under the PSF Community Code of Conduct: htt

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread MRAB
On 2018-08-13 20:08, Abe Dillon wrote: [Bruce Leban] Lambda calculus IS computer science. It's a foundation of computer science. That doesn't mean it "IS" computer science. Set theory is a foundation of computer science. It's still it's own discipline. [snip] The word "is" can mean, am

Re: [Python-ideas] Toxic forum

2018-08-13 Thread Stephen J. Turnbull
Cleaning out the Ccs, presumably subscribed. Nicholas Chammas writes: > From what I’ve seen on this list in my relatively brief time here, > this forum is mostly fine and the participants generally behave > like adults. I don’t read every thread, so maybe I don’t have an > accurate picture. F

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Chris Angelico
On Tue, Aug 14, 2018 at 5:08 AM, Abe Dillon wrote: > The whole point of a programming language is to bridge the gap between > machine code and natural language (in Python's case English, as with most > other languages). It's to make reading and writing code easier through > abstraction, not to cre

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Abe Dillon
[Bruce Leban] > Lambda calculus IS computer science. It's a foundation of computer science. That doesn't mean it "IS" computer science. Set theory is a foundation of computer science. It's still it's own discipline. [Bruce Leban] > Rejecting lambda as CS is as bad as rejecting the + operator b

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Chris Angelico
On Tue, Aug 14, 2018 at 4:00 AM, Bruce Leban wrote: > And as to saying a lambda function is an "anonymous function": the anonymity > is not a property of the function. If I assign it to a name, it's no longer > anonymous. Really a "lambda" or "lambda function" is just a function, but > "lambda" is

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Bruce Leban
On Sun, Aug 12, 2018 at 8:31 PM, Abe Dillon wrote: > > [Steven D'Aprano] > >> ...if we aren't even willing to move out of our own comfort zone to >> the extent of learning accurate jargon terms from our own profession? > > > Very few of us are computer scientists by profession. That's not even >

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Stefan Behnel
Michel Desmoulin schrieb am 09.08.2018 um 18:59: > I'd rather have functools.partial() to be added as a new method on > function objects. > >> from functools import partial >> >> def add(x:int,y:int)->int: >> returnx +y >> >> add_2 = partial(add,2) > > Would become: > > add_2 = add.partial(2

Re: [Python-ideas] Syntactic sugar to declare partial functions

2018-08-13 Thread Alex Walters
> -Original Message- > From: Python-ideas list=sdamon@python.org> On Behalf Of Abe Dillon > Sent: Monday, August 13, 2018 12:56 AM > To: Chris Angelico > Cc: Python-Ideas > Subject: Re: [Python-ideas] Syntactic sugar to declare partial functions > > [Alex Walters] > > > H

[Python-ideas] Python Community Code of Conduct

2018-08-13 Thread Jonathan Fine
https://www.python.org/psf/codeofconduct/ Python Community Code of Conduct The Python community is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences great successes and continued gr

Re: [Python-ideas] Toxic forum

2018-08-13 Thread Abdur-Rahmaan Janhangeer
some mods warnings or reminders might also help ! Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://pyt

Re: [Python-ideas] Toxic forum

2018-08-13 Thread Abe Dillon
This is a half-baked thought, but perhaps a sub-reddit would facilitate better moderation and we'd get the bonus of threaded discussions and a side-bar for ediquite and other important info. I know Reddit has a mixed reputation, but some of the best moderated subs like /r/science and /r/neutralpol

Re: [Python-ideas] Toxic forum

2018-08-13 Thread Michael Selik
On Mon, Aug 13, 2018, 10:09 AM Chris Angelico wrote: > On Tue, Aug 14, 2018 at 3:06 AM, Michael Selik wrote: > > > > > > On Mon, Aug 13, 2018, 5:59 AM Nicholas Chammas < > nicholas.cham...@gmail.com> > > wrote: > >> > >> Maybe we need to revive that discussion? Overall, I don’t think we have > a

Re: [Python-ideas] Toxic forum

2018-08-13 Thread Michael Selik
Something that limits posts to once per day per thread could be useful, maybe even once per week. On Mon, Aug 13, 2018, 10:06 AM Michael Selik wrote: > > > On Mon, Aug 13, 2018, 5:59 AM Nicholas Chammas > wrote: > >> Maybe we need to revive that discussion? Overall, I don’t think we have a >>

Re: [Python-ideas] Toxic forum

2018-08-13 Thread Chris Angelico
On Tue, Aug 14, 2018 at 3:06 AM, Michael Selik wrote: > > > On Mon, Aug 13, 2018, 5:59 AM Nicholas Chammas > wrote: >> >> Maybe we need to revive that discussion? Overall, I don’t think we have a >> people problem on this list as much as we have an administration tooling >> problem. > > > +1 > >

Re: [Python-ideas] Toxic forum

2018-08-13 Thread Michael Selik
On Mon, Aug 13, 2018, 5:59 AM Nicholas Chammas wrote: > Maybe we need to revive that discussion? Overall, I don’t think we have a > people problem on this list as much as we have an administration tooling > problem. > +1 Even the fact that "straw poll" votes aren't counted automatically shows t

Re: [Python-ideas] Toxic forum

2018-08-13 Thread Abdur-Rahmaan Janhangeer
normally at above 20+ posts it gets crazy Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/

Re: [Python-ideas] Toxic forum

2018-08-13 Thread Nicholas Chammas
>From what I’ve seen on this list in my relatively brief time here, this forum is mostly fine and the participants generally behave like adults. I don’t read every thread, so maybe I don’t have an accurate picture. From what I’ve seen, there is the occasional spat, where people just need to step aw

Re: [Python-ideas] Toxic forum

2018-08-13 Thread Paul Moore
On Mon, 13 Aug 2018 at 11:30, Antoine Pitrou wrote: > > On Sun, 12 Aug 2018 23:56:24 -0500 > Abe Dillon wrote: > > > > This forum is looking more and more toxic. I've explained myself over and > > over again. I just wanted to +1 Steven's original comment. This is > > ridiculous. I guess I've piss

Re: [Python-ideas] Consider adding an iterable option to dataclass

2018-08-13 Thread Ivan Levkivskyi
On 11 August 2018 at 01:29, Eric V. Smith wrote: > On 8/10/2018 7:01 PM, Neil Girdhar wrote: > >> [...] > > [...] > >> sequence would simply inherit from collections.abc.Sequence and implement >> the two methods __len__ and __getitme__. >> > > Unless I'm misunderstanding you, this falls in to the

[Python-ideas] Toxic forum

2018-08-13 Thread Antoine Pitrou
On Sun, 12 Aug 2018 23:56:24 -0500 Abe Dillon wrote: > > This forum is looking more and more toxic. I've explained myself over and > over again. I just wanted to +1 Steven's original comment. This is > ridiculous. I guess I've pissed of the good-old-boys by calling out > Steven's unnecessary co