summaryrefslogtreecommitdiff
path: root/Doc/library/zipimport.rst
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2009-02-08 03:37:27 +0000
committerNick Coghlan <ncoghlan@gmail.com>2009-02-08 03:37:27 +0000
commitab16ddaacc94fa3dabffc85656e60ab80da589f0 (patch)
treeba28a9a18a41d4ab5274e58b4a21a80313a96d8e /Doc/library/zipimport.rst
parent6f899d84bc287700caf1ef8eecb6db379d3c3cb6 (diff)
downloadcpython-ab16ddaacc94fa3dabffc85656e60ab80da589f0.tar.gz
Merged revisions 69425 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r69425 | nick.coghlan | 2009-02-08 13:17:00 +1000 (Sun, 08 Feb 2009) | 1 line Issue #4512 closeout: Make ZipImport.get_filename() a public method ........
Diffstat (limited to 'Doc/library/zipimport.rst')
-rw-r--r--Doc/library/zipimport.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/zipimport.rst b/Doc/library/zipimport.rst
index 912378e164..3fd0595db5 100644
--- a/Doc/library/zipimport.rst
+++ b/Doc/library/zipimport.rst
@@ -88,6 +88,15 @@ zipimporter Objects
file wasn't found.
+ .. method:: get_filename(fullname)
+
+ Return the value ``__file__`` would be set to if the specified module
+ was imported. Raise :exc:`ZipImportError` if the module couldn't be
+ found.
+
+ .. versionadded:: 3.1
+
+
.. method:: get_source(fullname)
Return the source code for the specified module. Raise