Erik Bray added the comment:

Why should modifying the file in place be expected to do anything with respect 
to the directory cache?  If that module has already been imported then 
modifying it should not require the cache to be invalidated.

If the file is modified *before* it's imported that's still irrelevant because 
that means the file exists in the directory and will be included in the cache 
when it gets generated.

Relying on invalidate_caches() is a workaround because it's not even necessary 
on better filesystems--the existing behavior already leads to hard to find bugs.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17330>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to