On Mon, Oct 7, 2019 at 8:37 PM Steven D'Aprano <steve@pearwood.info> wrote:
On Tue, Oct 08, 2019 at 09:19:07AM +1100, Cameron Simpson wrote:
> On 07Oct2019 10:56, Joao S. O. Bueno <jsbueno@python.org.br> wrote:
> >So, in short, your idea is to allow "=" signs inside `[]` get notation to
> >be translated
> >to dicts on the call,
> Subjectively that seems like a tiny tiny win. I'm quite -1 on this idea;
> language spec bloat to neglible gain.

As per Caleb's initial post, this is how Pandas currently does it:

    db[db['x'] == 1]

Replacing that with db[x=1] seems like a HUGE win to me.

Even db[{'x': 1}] is pretty clunky.

At least in my opinion, this is even more important for xarray than pandas, since xarray has named dimensions.  Positional indexing really doesn't make all that much sense with xarray, being able to use keyword-based indexing would drastically simplify things.