Steven D'Aprano wrote:

The obvious solution to customising assignment is to use a dotted target:

    obj.x = value

Another problem with this is that we don't want to customise *all*
assignments. Sometimes we just want a regular Python assignment.
(See my previous post about two different kinds of assignment.)

I think that talking about this in terms of "customising assignment"
is misleading and is causing a lot of confusion.

--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to