A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-April/139259.html below:

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

[Python-Dev] Type hints -- a mediocre programmer's reaction [Python-Dev] Type hints -- a mediocre programmer's reactionNick Coghlan ncoghlan at gmail.com
Tue Apr 21 03:30:01 CEST 2015
On 20 Apr 2015 14:44, "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.

+1

Having stub files take precedence over inline annotations would also neatly
deal with the annotation compatibility problem (you can use a stub file to
annotate code using annotations for another purpose).

Another point in favour of that approach: stub files could be evaluated
holistically rather than statement at a time, permitting implicit forward
references.

Cheers,
Nick.

>
> 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/ncoghlan%40gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150420/4806f578/attachment-0001.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4