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

2016-07-19 Thread Sylvain Corlay
Hello, This is my first post on python-dev and I hope that I am not breaking any rule. I wanted to react on the discussion regarding PEP487. This year, we have been working on a refactoring of the `traitlets` library, an implementation of the descriptor pattern that is used in Project Jupyter /

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

2016-07-19 Thread Neil Girdhar
Thanks for clarifying. On Tue, Jul 19, 2016 at 10:34 AM Nick Coghlan wrote: > On 19 July 2016 at 16:41, Neil Girdhar wrote: > > Yes, I see what you're saying. However, I don't understand why > > __init_subclass__ (defined on some class C) cannot be used to implement > the > > checks required

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

2016-07-19 Thread Nick Coghlan
On 19 July 2016 at 16:41, Neil Girdhar wrote: > Yes, I see what you're saying. However, I don't understand why > __init_subclass__ (defined on some class C) cannot be used to implement the > checks required by @abstractmethod instead of doing it in ABCMeta. This > would prevent metaclass confli

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

2016-07-19 Thread Paul Moore
On 19 July 2016 at 10:49, Paul Moore wrote: > On 18 July 2016 at 18:01, Paul Moore wrote: >> On 18 July 2016 at 17:33, Steve Dower wrote: Some comments below. >>> >>> Awesome, thanks! Posted a pull request at >>> https://github.com/python/peps/pull/59 for ease of diff reading, and some >>>

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

2016-07-19 Thread Paul Moore
On 18 July 2016 at 18:01, Paul Moore wrote: > On 18 July 2016 at 17:33, Steve Dower wrote: >>> Some comments below. >> >> Awesome, thanks! Posted a pull request at >> https://github.com/python/peps/pull/59 for ease of diff reading, and some >> commentary below (with aggressive snipping). > > Than