You have to find a core dev who is willing to act as a Sponsor. I recommend asking Steven d’Aprano (but I do not know if he’s interested). Until then, hash out the precise spec for the idea here. Coming up with a solid motivation is also important.
On Tue, Jul 21, 2020 at 01:15 Stefano Borini <stefano.bor...@gmail.com> wrote: > I am unsure of the process if there's interest. Should I revise the > PEP and create a new one? > > On Tue, 21 Jul 2020 at 06:29, Christopher Barker <python...@gmail.com> > wrote: > > > > On Mon, Jul 20, 2020 at 3:17 AM Rhodri James <rho...@kynesim.co.uk> > wrote: > >> > >> Ironically that example pushes me back to -1. It may look a lot like > >> xarray and pandas working, but that just means it should be in xarray > >> and/or pandas. > > > > > > after following most of this discussion, I'm still not sure what we'd > get with keywords in indexing. > > > > But I do think it would be nice of we could use slice syntax in other > places. That would allow things like xarray and pandas to use slices in > regular function calls. here's an example from the xarray docs: > > > > da.isel(space=0, time=slice(None, 2)) > > > > wouldn't that be nice as: > > > > da.isel(space=0, time=:2) > > > > or: > > > > da.sel(time=slice("2000-01-01", "2000-01-02")) > > > > could be: > > > > da.sel(time="2000-01-01":"2000-01-02") > > > > As far as I can tell, slicing syntax is currently a syntax error in > these cases, and any others I thought to test. > > > > Is there a reason to not allow syntax for creating a slice object to be > used anywhere (Or more places, anyway)? > > > > By the way, I just noticed this note in the xarray docs: > > > > """Note: We would love to be able to do indexing with labeled dimension > names inside brackets, but unfortunately, Python does yet not support > indexing with keyword arguments like da[space=0] > > """ > > So they would like it :-) > > > > -CHB > > > > > > > > -- > > Christopher Barker, PhD > > > > Python Language Consulting > > - Teaching > > - Scientific Software Development > > - Desktop GUI and Web Development > > - wxPython, numpy, scipy, Cython > > _______________________________________________ > > Python-ideas mailing list -- python-ideas@python.org > > To unsubscribe send an email to python-ideas-le...@python.org > > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/VSQO7A6K2SA7KI25U25CHROPEHCZFEG2/ > > Code of Conduct: http://python.org/psf/codeofconduct/ > > > > -- > Kind regards, > > Stefano Borini > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/FVBXHEKTOTRXBBQ2AVUHTF72YFD4HCCH/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido (mobile)
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/URJK4PLF7XCMRD7PGRKP7BSVGQAVSEZ2/ Code of Conduct: http://python.org/psf/codeofconduct/