Re: [Python-ideas] Data Classes (was: Re: JavaScript-Style Object Creation in Python (using a constructor function instead of a class to create objects))

2017-07-12 Thread Nick Coghlan
On 13 July 2017 at 11:10, Eric V. Smith wrote: > The real world has intruded on my "Data Classes" time. But when I can, I'll > get back to it and complete it. Hopefully I can spend all of the Core Sprint > time on it. One of the presentations at this year's PyCon Australia Education Seminar is on

Re: [Python-ideas] PEP: Hide implementation details in the C API

2017-07-12 Thread Nick Coghlan
On 13 July 2017 at 08:23, Stefan Behnel wrote: > The general rule of thumb in Cython core development is that it's ok to > exploit internals as long as there is a generic fallback through some C-API > operations which can be used in other Python implementations. I'd be happy > if that continued to

Re: [Python-ideas] Data Classes (was: Re: JavaScript-Style Object Creation in Python (using a constructor function instead of a class to create objects))

2017-07-12 Thread Eric V. Smith
> On Jul 12, 2017, at 9:02 PM, Gregory P. Smith wrote: > > >> On Thu, May 18, 2017 at 6:38 PM Eric V. Smith wrote: >> On 5/18/17 2:26 PM, Sven R. Kunze wrote: >> > On 17.05.2017 23:29, Ivan Levkivskyi wrote: >> >> the idea is to write it into a PEP and consider API/corner >> >> cases/implement

Re: [Python-ideas] Data Classes (was: Re: JavaScript-Style Object Creation in Python (using a constructor function instead of a class to create objects))

2017-07-12 Thread Guido van Rossum
I hope it will happen. https://github.com/ericvsmith/dataclasses On Wed, Jul 12, 2017 at 6:02 PM, Gregory P. Smith wrote: > > On Thu, May 18, 2017 at 6:38 PM Eric V. Smith wrote: > >> On 5/18/17 2:26 PM, Sven R. Kunze wrote: >> > On 17.05.2017 23:29, Ivan Levkivskyi wrote: >> >> the idea is to

Re: [Python-ideas] Data Classes (was: Re: JavaScript-Style Object Creation in Python (using a constructor function instead of a class to create objects))

2017-07-12 Thread Gregory P. Smith
On Thu, May 18, 2017 at 6:38 PM Eric V. Smith wrote: > On 5/18/17 2:26 PM, Sven R. Kunze wrote: > > On 17.05.2017 23:29, Ivan Levkivskyi wrote: > >> the idea is to write it into a PEP and consider API/corner > >> cases/implementation/etc. > > > > Who's writing it? > > Guido, Hynek, and I met toda

Re: [Python-ideas] PEP: Hide implementation details in the C API

2017-07-12 Thread Stefan Behnel
Victor Stinner schrieb am 11.07.2017 um 12:19: > Split the ``Include/`` directory of CPython: > > * ``python`` API: ``Include/Python.h`` remains the default C API > * ``core`` API: ``Include/core/Python.h`` is a new C API designed for > building Python > * ``stable`` API: ``Include/stable/Python

Re: [Python-ideas] PEP: Hide implementation details in the C API

2017-07-12 Thread Brett Cannon
On Wed, 12 Jul 2017 at 01:25 Ronald Oussoren wrote: > > > On 11 Jul 2017, at 12:19, Victor Stinner > wrote: > > > > Hi, > > > > This is the first draft of a big (?) project to prepare CPython to be > > able to "modernize" its implementation. Proposed changes should allow > > to make CPython more

Re: [Python-ideas] PEP: Hide implementation details in the C API

2017-07-12 Thread Ronald Oussoren
> On 11 Jul 2017, at 12:19, Victor Stinner wrote: > > Hi, > > This is the first draft of a big (?) project to prepare CPython to be > able to "modernize" its implementation. Proposed changes should allow > to make CPython more efficient in the future. The optimizations > themself are out of the