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 terry.reedy
Recipients aeros, docs@python, terry.reedy
Date 2019-07-05.19:33:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562355231.29.0.956725254733.issue37478@roundup.psfhosted.org>
In-reply-to
Content
> what exactly is the standard for mentioning errors
My impression is that there is none, or that it is inconsistent, but that the trend is to say more.  If you want to followup, check the documentation chapters of the devguide, and if there is nothing clear now, post to the pydev list.

https://docs.python.org/3/library/os.html#os-file-dir has

 os.chdir(path)
    Change the current working directory to path.
    This function can support specifying a file descriptor. The descriptor must refer to an opened directory, not an open file.

Most of the other entries in do not mention errors, but is_dir has the line mentioned.  I think the condensed line is enough to add, as the sub-exception names are self-explanatory; and when they occur, the full message certainly is.  (I verified both possibilities mentioned.)  Most users should just catch OSError, if anything.

Make a PR with the short message and request me as a reviewer.
History
Date User Action Args
2019-07-05 19:33:51terry.reedysetrecipients: + terry.reedy, docs@python, aeros
2019-07-05 19:33:51terry.reedysetmessageid: <1562355231.29.0.956725254733.issue37478@roundup.psfhosted.org>
2019-07-05 19:33:51terry.reedylinkissue37478 messages
2019-07-05 19:33:51terry.reedycreate