[Python-checkins] peps: Make it explicit that loaders may install additional __things__ on
barry.warsaw
python-checkins at python.org
Fri May 4 21:51:14 CEST 2012
http://hg.python.org/peps/rev/7bc9b5f75033
changeset: 4353:7bc9b5f75033
user: Barry Warsaw <barry at python.org>
date: Fri May 04 15:51:09 2012 -0400
summary:
Make it explicit that loaders may install additional __things__ on
modules.
files:
pep-0420.txt | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pep-0420.txt b/pep-0420.txt
--- a/pep-0420.txt
+++ b/pep-0420.txt
@@ -275,8 +275,9 @@
This PEP relaxes this constraint, and leaves the setting of ``__file__`` to
the purview of the loader producing the module. Loaders may opt to leave
-``__file__`` unset if no file system path is appropriate. This means that the
-definitive way to determine the origin of a module is to check its
+``__file__`` unset if no file system path is appropriate. Loaders may also
+set additional reserved attributes on the module if useful. This means that
+the definitive way to determine the origin of a module is to check its
``__loader__`` attribute.
For example, namespace packages as described in this PEP will have no
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list