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 petr.viktorin
Recipients docs@python, hroncok, petr.viktorin, serhiy.storchaka
Date 2018-05-28.14:29:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527517784.88.0.682650639539.issue33666@psf.upfronthosting.co.za>
In-reply-to
Content
I think this was closed prematurely.

> Projects that depend on it are incorrect and should be fixed.

That's definitely correct; no one here is arguing against it.
However, there are projects out there depending on it -- it worked since around Python 2.5, and is readily available in `os.` tab completion.
I think that documenting the removal would be good for our users.

Furthermore, not all of its uses can be fixed. I've seen it printed in books. There are many answers/guides/tutorials around mentioning os.errno, for example:
http://nullege.com/codes/search/os.errno.EACCES
https://ubuntuforums.org/showthread.php?t=1459923
http://code.activestate.com/recipes/580759-show-os-error-codes-and-messages-from-the-oserrno-/
https://www.georgevreilly.com/blog/2016/03/24/RaisingIOErrorForFileNotFound.html

... and people tend based their code on such recipes, rather than checking what's documented.


And, of course, projects run into this:
https://github.com/intel/bmap-tools/issues/34
https://bugzilla.redhat.com/show_bug.cgi?id=1583196
https://github.com/python/typeshed/issues/1646
History
Date User Action Args
2018-05-28 14:29:44petr.viktorinsetrecipients: + petr.viktorin, docs@python, serhiy.storchaka, hroncok
2018-05-28 14:29:44petr.viktorinsetmessageid: <1527517784.88.0.682650639539.issue33666@psf.upfronthosting.co.za>
2018-05-28 14:29:44petr.viktorinlinkissue33666 messages
2018-05-28 14:29:44petr.viktorincreate