STINNER Victor <vstin...@python.org> added the comment:
> Note that ENOENT is ambiguous, but the exception message is very specific > about what file is not found. And it is not always correct. If you want to be extra nice, you can try to check if the file exists. If it exists, add a message about the shebang. The problem is that the code to generate the exception is quite generic, it creates an OSError exception object from an errno (int) and a filename (str). It's not trivial to change the exception message. Is it worth it? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43113> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com