On 29 May 2018 at 20:06, Petr Viktorin <encu...@gmail.com> wrote:

> Is that reasoning sound?
> Should our policy on removing internal imports take that into account?
>

As Steven noted, the normative answer to this is in PEP 8:
https://www.python.org/dev/peps/pep-0008/#public-and-internal-interfaces

Since `os.errno` is a transitive import, is not included in `os.__all__`,
and isn't documented in the library reference, it's considered an
implementation detail that can be removed without a deprecation period.

That said, it should still be mentioned in the "Porting to Python 3.7"
section of the What's New guide, with the fix being to switch to "import
errno" in any affected code.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to