> but requires either some obscure syntax or a statement instead of a simple > expression. > > The proposal is to enable the obvious syntax for something that should be > obvious. > > Stefan
The discussions on this list show that the behavior of `+` operator with dict will never be obvious (first wins or second wins or add results or raise Exception). So the user will always have to look at the doc or test it to know the intended behavior. That said, [1,2] + [3] equals [1,2,3] but not[1,2, [3]] and that was not obvious to me, and I survived. _______________________________________________ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
