diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2009-02-08 03:17:00 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2009-02-08 03:17:00 (GMT) |
commit | 0194f5bc98d3fb3e7b4aaed874edf2df3a33bfd3 (patch) | |
tree | 86c78fe24cd43fc089a90497cd830cbba20783e4 /Doc | |
parent | c3623b1849136d9825e8dad2fa893c06696c804d (diff) | |
download | cpython-0194f5bc98d3fb3e7b4aaed874edf2df3a33bfd3.zip cpython-0194f5bc98d3fb3e7b4aaed874edf2df3a33bfd3.tar.gz cpython-0194f5bc98d3fb3e7b4aaed874edf2df3a33bfd3.tar.bz2 |
Issue #4512 closeout: Make ZipImport.get_filename() a public method
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/zipimport.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/zipimport.rst b/Doc/library/zipimport.rst index 0a6ece0..d659efe 100644 --- a/Doc/library/zipimport.rst +++ b/Doc/library/zipimport.rst @@ -94,6 +94,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:: 2.7 + + .. method:: get_source(fullname) Return the source code for the specified module. Raise |