On Sun, Aug 30, 2020 at 21:58 Random832 <random...@fastmail.com> wrote:

> A new bytecode operation (we'll need one anyway, right?)


Yes.

which, in addition to passing in the positionals and the keywords, also
> passes along the information of whether or not the subscript contents
> consisted of precisely a single expression without a trailing comma (or
> with one, if that'd work better... i believe flagging either one of these
> cases provides enough information to determine what form of argument should
> be passed to the single-argument __getitem__).


Sure, but that flag would have to be passed through all the C API layers
until it reaches the tp slots. In particular it would uglify
PyObject_[GS]etItemEx.
-- 
--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/FHDE44XXUN5YITBCZ35CQQQDXNAM3YLH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to