This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients eric.smith, gregory.p.smith, hroncok, izbyshev, nanjekyejoannah, pablogsal, torsava, vstinner
Date 2021-02-11.07:56:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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?
Date User Action Args
2021-02-11 07:56:35vstinnersetrecipients: + vstinner, gregory.p.smith, eric.smith, torsava, izbyshev, hroncok, pablogsal, nanjekyejoannah
2021-02-11 07:56:35vstinnersetmessageid: <>
2021-02-11 07:56:35vstinnerlinkissue43113 messages
2021-02-11 07:56:34vstinnercreate