[Python-ideas] Re: Using "Get Satisfaction" for Python Suggestions

2022-02-20 Thread Gerrit Holl
On Sun, 20 Feb 2022 at 08:05, Steven D'Aprano wrote: > > There is no way to make a popular vote fair. > > That's an odd take. > > A better take is that, fair or not, popularity is not necessarily a good > judge of what works well in a language. Language design requires skill > and taste, and it

[Python-ideas] Re: PEP 671 proof-of-concept implementation

2021-10-29 Thread Gerrit Holl
On Fri, 29 Oct 2021 at 11:10, Steven D'Aprano wrote: > Obviously you need a way to indicate that a value in __defaults__ should > be skipped. Here's just a sketch. Given: > > def func(a='alpha', b='beta', @c=expression, d=None) > > where only c is late bound, you could have: > >

[Python-ideas] Re: allow initial comma

2021-03-19 Thread Gerrit Holl
Hi, On Fri, 12 Mar 2021 at 15:12, Paul Moore wrote: > This layout style is not something I've ever seen used in "real life", > and I don't think it's something that should be encouraged, much less > added to the language. > More likely because there are two common schools of thought - lists >

[Python-ideas] Re: PEP 472 -- Support for indexing with keyword arguments

2020-07-21 Thread Gerrit Holl
On Sat, 18 Jul 2020 at 18:31, MRAB wrote: > [snip] > I haven't followed this thread for a while, but, to me, it seems that > the simplest option would be to pass the keyword arguments as a dict: > > obj[a, b:c, x=1] does obj.__getitem__((a, slice(b, c)), dict(x=1)) > > If there are no

[Python-ideas] Re: PEP 472 -- Support for indexing with keyword arguments

2020-07-21 Thread Gerrit Holl
On Mon, 20 Jul 2020 at 04:27, Jonathan Goble wrote: >> One use case that comes up in xarray and pandas is support for indicating >> indexing "modes". For example, when indexing with floating point numbers >> it's convenient to be able to opt-in to approximate indexing, e.g., >> something like:

[Python-ideas] Re: Equality between some of the indexed collections

2020-05-06 Thread Gerrit Holl
On Sat, 2 May 2020 at 15:06, Ahmed Amr wrote: > > I'd like to take your opinion on modifying some of the indexed collections > like tuples, lists, arrays to evaluate its equality to True when having the > same items in the same indexes. > Currently, when comparing a list of items to an array of

[Python-ideas] PEP 9999: Retire animal-unfriendly language

2020-03-31 Thread Gerrit Holl
(needs a sponsor) latest version at https://github.com/gerritholl/peps/blob/animal-friendly/pep-.rst PEP: Title: Retire animal-unfriendly language Author: Gerrit Holl Discussions-To: python-ideas@python.org Status: Draft Type: Informational Content-Type: text/x-rst Created: 01-Apr-2020