<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 4, 2019 at 1:29 PM Neil Girdhar <<a href="mailto:mistersheik@gmail.com">mistersheik@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Mar 4, 2019 at 3:58 PM Christopher Barker <<a href="mailto:pythonchb@gmail.com" target="_blank">pythonchb@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Mon, Mar 4, 2019 at 12:41 PM Guido van Rossum <<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>> wrote:<br>
>><br>
>> Honestly I would rather withdraw the subtraction operators than reopen the discussion about making dict more like set.<br>
<br>
I think that's unfortunate.<br>
><br>
><br>
> +1<br>
><br>
> I think the "dicts are like more-featured" sets is a math-geek perspective, and unlikely to make things more clear for the bulk of users. And may make it less clear.<br>
<br>
I'd say reddit has some pretty "common users", and they're having a<br>
discussion of this right now<br>
(<a href="https://www.reddit.com/r/Python/comments/ax4zzb/pep_584_add_and_operators_to_the_builtin_dict/" rel="noreferrer" target="_blank">https://www.reddit.com/r/Python/comments/ax4zzb/pep_584_add_and_operators_to_the_builtin_dict/</a>).<br>
The most popular comment is how it should be |.<br>
<br>
Anyway, I think that following the mathematical metaphors tends to<br>
make things more intuitive in the long run.</blockquote><div><br></div><div>Only if you know the mathematical metaphors. ;)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  Python is an adventure.<br>
You learn it for years and then it all makes sense.  If dict uses +,<br>
yes, new users might find that sooner than |.  However, when they<br>
learn set union, I think they will wonder why it's not consistent with<br>
dict union.<br></blockquote><div><br></div><div>Not to me. I barely remember that | is supported for sets, but I sure know about + and lists (and strings, etc.) and I'm willing to bet the vast majority of folks are the some; addition is much more widely known than set theory.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The PEP's main justification for + is that it matches Counter, but<br>
counter is adding the values whereas | doesn't touch the values.   I<br>
think it would be good to at least make a list of pros and cons of<br>
each proposed syntax.<br></blockquote><div><br></div><div>I suspect Steven will add more details to a Rejected Ideas section.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> We need to be careful -- there are a lot more math geeks on this list than in the general Python coding population.<br>
><br>
> Simply adding "+" is a non-critical nice to have, but it seems unlikely to really confuse anyone.<br></blockquote><div><br></div><div>I agree with Chris.</div><div><br></div><div>-Brett<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
><br>
> -CHB<br>
><br>
><br>
> --<br>
> Christopher Barker, PhD<br>
><br>
> Python Language Consulting<br>
>   - Teaching<br>
>   - Scientific Software Development<br>
>   - Desktop GUI and Web Development<br>
>   - wxPython, numpy, scipy, Cython<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div></div>