[Python-ideas] Add an option that allow check Type Hints in runtime

David Mertz mertz at gnosis.cx
Fri Jul 8 02:42:57 EDT 2016

This exists already. All the annotations love on the '__annotations__'
attribute is a function or method. Check that at runtime however you like!
On Jul 7, 2016 11:39 PM, "Ma Lin" <animalize81 at hotmail.com> wrote:

> Hi, all,
>      Is it possible to add an option that allow check Type Hints in
> runtime?
>      So that I can enable dynamic type checking when debugging. And
> disable it in final deploy, no performance lose.
> regards.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160707/36b4e92f/attachment.html>

More information about the Python-ideas mailing list