December 10, 2020 4:18 PM, [email protected] wrote:
> I do not want to make type-checker a part of CPython, I just what options
> that will allow to run
> python with first some type-checker ...
> For example, you would be able to set default python module for type-checking
> and if there is not
> module set for type checking, verify if `mypy` installed and if installed run
> it first ...
>
> The issue with separate running type-checker first and then script is that it
> is separate commands
> and failing run script is console dependent: in bash `set -e` and etc. in
> other consoles
>
> Better to have terminal agnostic option that will allow to do the same thing
> ...
>
This is quite easy to do without changing python. You could even do it with
Python itself, like this:
#!/usr/bin/python
import os
import sys
if __name__ == '__main__':
if(run_type_checker()):
os.system("python3 " + sys.argv[1])
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/NVNAVVQN2D2LOXKEVFBWNVWUNTK2F7MI/
Code of Conduct: http://python.org/psf/codeofconduct/