[Python-checkins] r80087 - peps/trunk/pep-3147.txt

barry.warsaw python-checkins at python.org
Thu Apr 15 03:16:47 CEST 2010


Author: barry.warsaw
Date: Thu Apr 15 03:16:47 2010
New Revision: 80087

Log:
There is no change to PEP 302.  imp.source_from_cache() and
imp.cache_from_source() may return None.


Modified:
   peps/trunk/pep-3147.txt

Modified: peps/trunk/pep-3147.txt
==============================================================================
--- peps/trunk/pep-3147.txt	(original)
+++ peps/trunk/pep-3147.txt	Thu Apr 15 03:16:47 2010
@@ -438,16 +438,9 @@
 
 Alternative implementations are free to override these functions to
 return reasonable values based on their own support for this PEP.
-
-
-PEP 302 loaders
----------------
-
-PEP 302 [18]_ defined loaders have a `.get_filename()` method which
-points to the `__file__` for a module.  As part of this PEP, we will
-extend this API, to include a new method `.get_paths()` which will
-return a 2-tuple containing the path to the source file and the path
-to where the matching `pyc` file is (or would be).
+These methods are allowed to return `None` when the implementation (or
+PEP 302 loader [18]_ in effect) for whatever reason cannot calculate
+the appropriate file name.  They should not raise exceptions.
 
 
 Backports


More information about the Python-checkins mailing list