[Python-ideas] Check type hints in stack trace printing

Eric Fahlgren ericfahlgren at gmail.com
Thu Jun 14 10:10:42 EDT 2018


On Thu, Jun 14, 2018 at 4:03 AM Daniel Sánchez Fábregas
<daniel.sanchez.fabregas at xunta.gal> wrote:

> My idea consist in:
> Adding a method to perform type checking in traceback objects
> When printing stack traces search for mistyped arguments and warn about
> them to the user.
>
​
Isn't it faster and far more reliable to run your code through mypy (or
whatever) and detect these problems statically, rather than wait and hope
that you run into the problem dynamically?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180614/81686a3f/attachment.html>


More information about the Python-ideas mailing list