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

2018-08-10 Thread Eric V. Smith
On 8/10/2018 7:01 PM, Neil Girdhar wrote: It would be nice if dataclasses (https://docs.python.org/3/library/dataclasses.html#dataclasses.dataclass) had an option to make them a sequence.  This would make dataclass(frozen=True, order=True, sequence=True) an optionally-typed version of namedtu

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

2018-08-10 Thread Abe Dillon
[Neil Girdhar] > > ... I don't find the google-ablilty argument super strong because > there are many constructs that are difficult to google, but still pretty > great (e.g. comprehensions). > Not that it matters, but comprehension is a standard term in mathematics > and computer science apparent

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

2018-08-10 Thread Steven D'Aprano
On Fri, Aug 10, 2018 at 04:01:59PM -0700, Neil Girdhar wrote: > It would be nice if dataclasses > (https://docs.python.org/3/library/dataclasses.html#dataclasses.dataclass) > had an option to make them a sequence. Do you have a use-case or reason for this other than "it would be nice"? Nice in

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

2018-08-10 Thread Neil Girdhar
It would be nice if dataclasses (https://docs.python.org/3/library/dataclasses.html#dataclasses.dataclass) had an option to make them a sequence. This would make dataclass(frozen=True, order=True, sequence=True) an optionally-typed version of namedtuple. It would almost totally supplant it e

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

2018-08-10 Thread Neil Girdhar
On Fri, Aug 10, 2018 at 6:21 PM Abe Dillon wrote: > [Neil Girdhar] > > I prefer partial since many programmers studied computer science > > > Many did not. I studied electrical engineering and wouldn't have been able > to tell you what the word 'partial' meant four years ago even though I've > be

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

2018-08-10 Thread Abe Dillon
[Neil Girdhar] > I prefer partial since many programmers studied computer science Many did not. I studied electrical engineering and wouldn't have been able to tell you what the word 'partial' meant four years ago even though I've been programming in one form or another since the late nineties.

Re: [Python-ideas] Python certification

2018-08-10 Thread Patrick Morris
Hi all Thanks to all for feedback on the question, and I will follow up with it on the other channels suggested! thanks Patrick On 10/08/2018 01:11, Wes Turner wrote: edu-sig may be a good list for such a discussion; though you may find more information on Python lessons aligned with CS/Sci

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

2018-08-10 Thread Steven D'Aprano
On Thu, Aug 09, 2018 at 01:32:00PM -0500, Abe Dillon wrote: > I'd like to push for the less jargon-y `func.given()` version if this gains > traction. Not only is it shorter, it's a much more common term with a clear > meaning. It's a clear, *generic* meaning that doesn't have any association with