[Python-ideas] Data Classes in Kotlin

2017-12-04 Thread Juancarlo Añez
I thought this might be interesting input for the discussions about "data classes" in Python: https://kotlinlang.org/docs/reference/data-classes.html I think that the use of "data class" as syntax is kind of cool, but what really matters is the semantics they chose for Kotlin. -- Juancarlo *Añe

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] 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] Data Classes

2017-05-19 Thread Niki Spahiev
On 19.05.2017 04:37, 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 today. I'm writing up our notes, and

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

2017-05-18 Thread Eric V. Smith
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 today. I'm writing up our notes, and hopefully that will eventually become a PE