On Sat, Nov 28, 2020 at 10:22 PM Abdulla Al Kathiri < alkathiri.abdu...@gmail.com> wrote:
> Indeed. Shantanu did some quick counting and found that after 'Any' and > the types covered by PEP 585, Callable is by far the most used: > https://bugs.python.org/issue42102#msg381155 > > > Nice survey. Can we do something with “Any" once we are at it? Maybe we > use “?”. But that might confuse people and think it’s None mirroring PEP > 645’s “type?”. > Please, no more proposals to use "?". :-) There's also PEP 640, and PEP 505. Maybe we should just make Any a builtin (but please start a new thread to debate that). On Sat, Nov 28, 2020 at 10:28 PM David Foster <davidf...@gmail.com> wrote: > (It's worth noting that I don't think either the original "Callable[[x, > y], z]" syntax OR the proposed "(x, y) -> z" syntax is particularly > readable when lots of nesting is involved, but I suspect that's just > because the type is just complicated. :) ) > You could simplify it by judicious application of type aliases. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(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/QOZQXBCSTSDZO6HQCCULASCWQN5GJ67Q/ Code of Conduct: http://python.org/psf/codeofconduct/