On 27/08/20 8:00 am, Christopher Barker wrote:
Translating to:

thing.__setitem__(self, (ind1, ind2), value, kwd1=v1, kw2=v2)

which is pretty darn weird

If we use a new set of dunders, the signature of the one for
setting could be

    def __setindex__(self, value, *args, **kwds)

which is not completely unsurprising, but plays better with
an arbitrary number of positional indexes.

--
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/JPLQHKYUCCYYJAXQ3PEUU3KBUWSL243R/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to