On Mon, 9 May 2022 at 08:35, Jeremiah Vivian <[email protected]> wrote: > > I've always thought of relaxing the restrictions. It's actually easy to > implement (even including attribute assignment/subscript assignment) and I > had to modify only two files (plus regenerate the parser).
I think attribute assignment needs care to be mixed with structural pattern matching, since obj.attr can also be considered as a value pattern. Note attribute assignment with the walrus operator is not absolutely necessary since the purpose can also be achieved with a version of the function setattr which returns not None but the set value. Best regards, Takuo Matsuoka _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/45VJY53B3ZD2P2EJLJBFGDZIH3IO4RNS/ Code of Conduct: http://python.org/psf/codeofconduct/
