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
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:
>
>
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
>
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
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:
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
(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