On Thu, May 21, 2020 at 2:27 AM Eric V. Smith <e...@trueblade.com> wrote: > > On 5/20/2020 11:26 AM, Chris Angelico wrote: > > On Thu, May 21, 2020 at 12:11 AM Eric V. Smith <e...@trueblade.com> wrote: > >> The fact that operators are notoriously difficult to search for doesn't > >> help any. > >> > > The fact that people STILL think that operators are difficult to > > search for doesn't help either. > > > > Google for "python :=" and PEP 572 is the first hit. > > > > DuckDuckGo for "python :=" didn't give any good results; my next > > thought was "python := operator" which didn't do much good. For most > > of the common operators, you'd get it from "python operator > > precedence", but unfortunately DDG is showing Python 2.7 search > > results above Python 3, so you'd have to go down to the page eighth in > > the search results, then browse the table. But when you do get there, > > it's not too hard to glance over the table, find that ":=" is an > > "assignment expression" and go from there. > > > > Bing for "python :=" has what looks like three paid search results, > > and then the first real result is Stack Overflow asking what the colon > > equal (:=) operator means, and even though the question is older than > > PEP 572, the accepted answer has been updated to link to it. > > > > Yandex failed to find the := operator specifically, but as with DDG, I > > had to go for "python operator precedence". Fortunately, it did give > > the Py3 page as the first hit. > > > > I tried a few of the more obscure search engines, and most of them > > seem to give the same results as one of the above. (I suspect quite a > > few of them get their results from one of the big ones anyway.) > > > > So two very popular search engines (Google and Bing) give excellent > > results straight away, and everything can at least find the operator > > precedence table, which is a good way to get started. I have to > > penalize DuckDuckGo a bit for not putting current version results at > > the top, but even then, it WAS on the first page, and of course you > > can always say "python 3 operator precedence". > > > > Operators ARE searchable. > > I think you meant ":= is searchable using half search engines I tried, > both of which are very popular". Which might be good enough for this > particular proposal, but I disagree.
Actually ":= is searchable using half the search engines I tried, and with the other half, 'python operators' gets a page with all operators, from which you can get the info you need". All the search engines I tried DID get the results I wanted; some more easily than others, but all got there. > I couldn't get anywhere with single character operators and Google. So > you haven't shaken my faith in my assertion. Hmm, good point. You can Google for "python @=" but not "python @". Strange. But you can still just look for all operators and go from there. And there are some word-based things that are also hard to search for, so at that point it becomes a wash. ChrisA _______________________________________________ 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/2HUXAQL66AF64KSJ4CUEYEFF3TX3FV6D/ Code of Conduct: http://python.org/psf/codeofconduct/