[issue15502] Meta path finders and path entry finders are different, but share an ABC

Eric Snow report at bugs.python.org
Thu Aug 2 15:49:38 CEST 2012


Eric Snow added the comment:

Regarding the ABCs, I'm okay with it as long as invalidate_caches() is meant to be a part of meta path finders.  I had considered this while writing the patch, so how I had it wasn't a fluke.  The fluke was that I didn't bring it up for discussion like I had meant to do.

 Anyway, my rationale was that importlib.invalidate_caches() is specific to path entry finders.  My patch reflected this.  If invalidates_caches() were meaningful for meta path finders then we could address that later without losing backward compatibility.

As to pulling find_module() off Finder, I felt that having a distinct signature, while semantically unimportant, made a clearer distinction between the old and the new.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15502>
_______________________________________


More information about the Python-bugs-list mailing list