On Wed, Jun 19, 2019 at 11:27 AM Chris Angelico <ros...@gmail.com> wrote:
> On Thu, Jun 20, 2019 at 2:07 AM Franklin? Lee > <leewangzhong+pyt...@gmail.com> wrote: > > For example, > > if (A <: B or A <: C) and A <: D: > > is not much better than > > if issubclass(A, (B, C)) and issubclass(A, D): > > especially if you don't know what either of those mean. You can search > > for issubclass, but you can't search for <:. > > Please can people stop trotting out this tired argument? I just typed > "<:" (without the quotes) into Google - or rather, into my Chrome > omnibar - and the first hit was a Stack Overflow question regarding > the "<:" operator in Scala, the second is Scala documentation about > "Upper Type Bounds" which looks plausible, and then there are a few > others that may or may not be related. > > Symbols CAN be searched for, both in Google and in many documentation > tools. > It's still harder. E.g. the wikipedia article on subtyping does not show in the search results for "<:", and searching for "<: wikipedia" ignores the "<:" entirely and just searches for "wikipedia". -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him/his **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________ 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/RFOSPEIW5MOUFA4HYXIKL6GMGWZOPTBM/ Code of Conduct: http://python.org/psf/codeofconduct/