[Python-Dev] Type hints -- a mediocre programmer's reaction

Tymoteusz Jankowski tymoteusz.jankowski at gmail.com
Mon Apr 20 21:03:49 CEST 2015


<voice-from-audience>
burn the witch..
</voice-from-audience>

More seriously.. +1 to Harry voice. Adding type hints to function code is
so ugly that that i'm breaking silence and i'm expressing it here before
you, so:
It's ugly

Perhaps this question was asked a million times, but why not docstrings,
which seems to be more elegant and natural place for that?
I will not use it.
Damn, if i had reputation this could be a threat. ;)

On Mon, Apr 20, 2015 at 8:43 PM Barry Warsaw <barry at python.org> wrote:

> On Apr 20, 2015, at 07:30 PM, Harry Percival wrote:
>
> >tldr; type hints in python source are scary. Would reserving them for stub
> >files be better?
>
> I think so.  I think PEP 8 should require stub files for stdlib modules and
> strongly encourage them for 3rd party code.
>
> Cheers,
> -Barry
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/tymoteusz.jankowski%40gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150420/7451488b/attachment.html>


More information about the Python-Dev mailing list