[New-bugs-announce] [issue33944] Deprecate and remove pth files

Barry A. Warsaw report at bugs.python.org
Fri Jun 22 13:22:20 EDT 2018


New submission from Barry A. Warsaw <barry at python.org>:

pth files are evil.  They are very difficult to debug because they're processed too early.  They usually contain globs of inscrutable code.  Exceptions in pth files can get swallowed in some cases.  They are loaded in indeterminate order.

They are also unnecessary to support namespace packages in Python 3 (ignoring straddling code).

Let's start the process for removing them.

1. Deprecate pth files in Python 3.8 and turn them off with the -3 option.

2. Kill off pth file support once Python 2 is EOL'd.

----------
components: Library (Lib)
messages: 320246
nosy: barry, brett.cannon, eric.snow
priority: normal
severity: normal
status: open
title: Deprecate and remove pth files
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33944>
_______________________________________


More information about the New-bugs-announce mailing list