[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-03-19 Thread Brett Cannon
Brett Cannon added the comment: Eric's convinced me this isn't worth it. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Eric Snow
Eric Snow added the comment: Re: the kw-only arg, it seems weird to accommodate the implementation of one meta-path finder in the signature of importlib.invalidate_caches(). Here's an alternative: Use a different sys.path_importer_cache sentinel internally (in PathFinder) and never clear None

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Brett Cannon
Brett Cannon added the comment: Or another option is to add a keyword-only argument to importlib.invalidate_caches() to also clear the the cache of importers itself on top of the caches of the importers themselves. -- ___ Python tracker

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Brett Cannon
Brett Cannon added the comment: Damn, good point about the backwards-compatibility issue. Then I think a doc note for importlib.invalidate_caches() saying that there is also sys.path_importer_cache would be good enough. -- assignee: -> brett.cannon components: +Documentation -Library

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Eric Snow
Eric Snow added the comment: (Note that PathFinder.invalidate_caches() loops over sys.path_importer_cache and invalidates the cache of each path entry finder therein. What you're suggesting is clearing sys.path_importer_cache after the loop finishes.) Hmm. The distinction is between clearing

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-22 Thread Brett Cannon
Brett Cannon added the comment: Sorry, this has not been decided upon yet. Since it's a change in semantics either I just need to make a decision or convince someone else to provide an opinion as to whether this change makes sense. -- ___ Python tra

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-22 Thread Anish Shah
Anish Shah added the comment: Hi Brett, I'm looking for some issues to solve. Is this issue confirmed? Can I work on this? -- ___ Python tracker ___

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-03 Thread Anish Shah
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-03 Thread Brett Cannon
New submission from Brett Cannon: Would it make sense to clear sys.path_importer_cache when someone calls importlib.invalidate_caches()? It is a cache after all. -- components: Library (Lib) messages: 259518 nosy: brett.cannon, eric.snow, ncoghlan priority: normal severity: normal stage