summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMarc-Andre Lemburg <mal@egenix.com>2012-04-24 23:36:48 (GMT)
committerMarc-Andre Lemburg <mal@egenix.com>2012-04-24 23:36:48 (GMT)
commit2945e78b05b8629969764842f73a845c1cbb2fb9 (patch)
tree968c259c2d1cdc2610bd4397b5d2469f3599bce1 /Doc
parenta5798ded26e3ad67946b7d8150a8e13b0075fbf8 (diff)
downloadcpython-2945e78b05b8629969764842f73a845c1cbb2fb9.zip
cpython-2945e78b05b8629969764842f73a845c1cbb2fb9.tar.gz
cpython-2945e78b05b8629969764842f73a845c1cbb2fb9.tar.bz2
Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/importlib.rst13
1 files changed, 5 insertions, 8 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index de29e4f..a8013d2 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -606,18 +606,15 @@ find and load modules.
Load the specified module if it is the same as :attr:`name`.
-.. class:: _SourcelessFileLoader(fullname, path)
+.. class:: SourcelessFileLoader(fullname, path)
A concrete implementation of :class:`importlib.abc.FileLoader` which can
import bytecode files (i.e. no source code files exist).
- It is **strongly** suggested you do not rely on this loader (hence the
- leading underscore of the class). Direct use of bytecode files (and thus not
- source code files) inhibits your modules from being usable by all Python
- implementations. It also runs the risk of your bytecode files not being
- usable by new versions of Python which change the bytecode format. This
- class is only documented as it is directly used by import and thus can
- potentially have instances show up as a module's ``__loader__`` attribute.
+ Please note that direct use of bytecode files (and thus not source code
+ files) inhibits your modules from being usable by all Python
+ implementations or new versions of Python which change the bytecode
+ format.
.. versionadded:: 3.3