> And if I write set item code, it is like this: > > >>> q[1, 2, 3, x=4, y=5, z=6, foo='bar'] = "baz" > > cpython level call looks like: > > cpython_subscript_operator_function(q, 1, > __item_dunder_name="__getitem__", __value="baz", x=4, y=5, z=6, foo='bar', > b=2, c=3) >
Sorry: forgot to change "__getitem__" to "__setitem__". Correction below. cpython_subscript_operator_function(q, 1, __item_dunder_name="__setitem__", __value="baz", x=4, y=5, z=6, foo='bar', b=2, c=3) --- Ricky. "I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler
_______________________________________________ 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/NHXZMPXWIAWQOY6FXB37GSTIBPHKIHUW/ Code of Conduct: http://python.org/psf/codeofconduct/