On Sat, May 23, 2020 at 2:52 PM Stephen J. Turnbull <
turnbull.stephen...@u.tsukuba.ac.jp> wrote:

> Alex Hall writes:
>
>  > In all cases it's not immediately clear what the actual default value
> is,
>  > or even what kind of object is meant to be passed to that parameter.
>
> I agree with the basic principle, but I'm not sure this is a very
> strong argument.  First, if you want to indicate what the type of the
> actual argument should be, we have annotations for that exact purpose.


Yes, but many people can't be bothered to write annotations. This change
would mean that I get extra type information even when using a function
written by a programmer making as little effort as they can.

Besides that, type annotations are often not easy to read - see the
StreamHandler screenshot. An example of an acceptable value is additionally
helpful.
_______________________________________________
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/EGNNAUJGHWM2P6UGJMHQFLPKMWWOWF5N/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to