Re: [Python-Dev] PEP 447: Add __getdescriptor__ to metaclasses

2016-07-24 Thread Ronald Oussoren
> On 24 Jul 2016, at 13:06, Ronald Oussoren > wrote: > … > But on the other hand, that’s why wanted to use PyObjC to validate > the PEP in the first place. I’ve hit a fairly significant issue with this, PyObjC’s super contains more magic than just this magic tha

Re: [Python-Dev] PEP 447: Add __getdescriptor__ to metaclasses

2016-07-24 Thread Ronald Oussoren
On 24 Jul 2016, at 13:06, Ronald Oussoren wrote:…But on the other hand, that’s why wanted to use PyObjC to validatethe PEP in the first place.I’ve hit a fairly significant issue with this, PyObjC’s super contains more magic than just this magic that would be fixed by PEP 44

Re: [Python-Dev] PEP487: Simpler customization of class creation

2016-07-24 Thread Nick Coghlan
On 25 July 2016 at 03:00, Guido van Rossum wrote: > Yes. OK, we can cover that in the documentation - if folks want to emulate what happens during class construction after the fact, they'll need to do: cls.name = attr attr.__set_name__(cls, "name") Semantically, I agree that approach ma

Re: [Python-Dev] PEP 514: Python registration in the Windows registry

2016-07-24 Thread Steve Dower
Thanks Paul. I'll update the headers on the PEP later today. Top-posted from my Windows Phone -Original Message- From: "Paul Moore" Sent: ‎7/‎24/‎2016 0:45 To: "Guido van Rossum" Cc: "Steve Dower" ; "Python Dev" Subject: Re: [Python-Dev] PEP 514: Python registration in the Windows reg

Re: [Python-Dev] PEP487: Simpler customization of class creation

2016-07-24 Thread Guido van Rossum
Yes. --Guido (mobile) On Jul 24, 2016 9:34 AM, "Ethan Furman" wrote: > On 07/24/2016 08:20 AM, Guido van Rossum wrote: > > I am very much against this. The two are not at all like each other. Also, >> what's the use case? >> > > To be clear: you are against the automatic calling of __set_name_

Re: [Python-Dev] PEP487: Simpler customization of class creation

2016-07-24 Thread Ethan Furman
On 07/24/2016 08:20 AM, Guido van Rossum wrote: I am very much against this. The two are not at all like each other. Also, what's the use case? To be clear: you are against the automatic calling of __set_name__ and/or __set_owner__ when using setattr outside of class creation? Said another

Re: [Python-Dev] PEP 514: Python registration in the Windows registry

2016-07-24 Thread Ethan Furman
On 07/24/2016 12:45 AM, Paul Moore wrote: This PEP is now accepted. Congratulations, Steve! And more congratulations! :) -- ~Ethan~ ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] PEP487: Simpler customization of class creation

2016-07-24 Thread Guido van Rossum
I am very much against this. The two are not at all like each other. Also, what's the use case? On Sunday, July 24, 2016, Martin Teichmann wrote: > Hi list, Hi Nick, > > Sorry for my delayed response, it is summer here... > > > However, phrasing it that way suggest that it's possible we *did* mi

Re: [Python-Dev] PEP 447: Add __getdescriptor__ to metaclasses

2016-07-24 Thread Ronald Oussoren
> On 24 Jul 2016, at 12:37, Nick Coghlan wrote: > > On 23 July 2016 at 22:26, Ronald Oussoren wrote: >> I’m currently working on getting the patch in 18181 up-to-date w.r.t. the >> current trunk, the patch in the issue no longer applies cleanly. After that >> I’ll try to think up some tests tha

Re: [Python-Dev] PEP 447: Add __getdescriptor__ to metaclasses

2016-07-24 Thread Nick Coghlan
On 23 July 2016 at 22:26, Ronald Oussoren wrote: > I’m currently working on getting the patch in 18181 up-to-date w.r.t. the > current trunk, the patch in the issue no longer applies cleanly. After that > I’ll try to think up some tests that seriously try to break the new > behaviour, and I want t

Re: [Python-Dev] PEP 514: Python registration in the Windows registry

2016-07-24 Thread Paul Moore
This PEP is now accepted. Congratulations, Steve! And thanks for putting up with all of my last-minute questions :-) Paul On 23 July 2016 at 21:20, Guido van Rossum wrote: > I'll let Paul pronounce. But you should probably have a BDFL-Delegate: > ... header. > > On Sat, Jul 23, 2016 at 12:16 PM,

Re: [Python-Dev] PEP487: Simpler customization of class creation

2016-07-24 Thread Martin Teichmann
Hi list, Hi Nick, Sorry for my delayed response, it is summer here... > However, phrasing it that way suggest that it's possible we *did* miss > something in the PEP: we haven't specified whether or not __set_name__ > should be called when someone does someone does "cls.attr = descr". > Given the