PEP 382 (Namespace Packages) was rejected

Issue #2 invalid
created an issue

The backports documentation mentions putting the following in backports/,

# A Python "namespace package"
# This always goes inside of a namespace package's

from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)

Reading I lean that PEP382 was rejected. Does this advice still apply?

Comments (4)

  1. Brandon Rhodes repo owner

    Good question! The history of Python packages is long and difficult and slow, and it is easy to become confused by what the standards guys are cooking up next.

    Yes, this advice will always apply, because — by definition — backports are targeted at the Python 2 series, whereas the PEPs that have superseded 382 are PEPs aimed at Python 3.3 at the very earliest. They are, in other words, discussions of the future of Python, whereas what is needed here is something that works today in Python 2 — and the state of the art is what PEP 382 was describing.

  2. Log in to comment