On 4/08/20 9:20 am, Todd wrote:
Another approach could be too simply pass the labelled indices in a dict as a third/fourth positional argument.
Has anyone suggested attaching the keyword args as attributes on the slice object? This would avoid changing the signature of __getitem__, and existing __getitem__ methods would just ignore the keyword args. -- Greg _______________________________________________ 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/A5RWSHLA75AO3EC2QHFHIDOREX2AGLJH/ Code of Conduct: http://python.org/psf/codeofconduct/