diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-03-10 03:29:23 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-03-10 03:29:23 (GMT) |
commit | d43b30b046ea151612494ed6d44aed3df71b480a (patch) | |
tree | 72a3a4773d9e73d93e8c59157df11da5669f58e4 /Doc/library/importlib.rst | |
parent | 28c013dcb464346b7fbefd73ad3cd35c66f98ae3 (diff) | |
download | cpython-d43b30b046ea151612494ed6d44aed3df71b480a.zip cpython-d43b30b046ea151612494ed6d44aed3df71b480a.tar.gz cpython-d43b30b046ea151612494ed6d44aed3df71b480a.tar.bz2 |
Implement get_source for importlib.abc.PyLoader using source_path and get_data.
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r-- | Doc/library/importlib.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 9784954..c1874f6 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -226,6 +226,13 @@ are also provided to help in implementing the core ABCs. :meth:`importlib.abc.InspectLoader.get_code` that creates code objects from Python source code. + .. method:: get_source(fullname) + + A concrete implementation of + :meth:`importlib.abc.InspectLoader.get_source`. Uses + :meth:`importlib.abc.InspectLoader.get_data` and :meth:`source_path` to + get the source code. + .. class:: PyPycLoader |