Nick Coghlan added the comment:

This is a known limitation of the import caching mechanism, and is the key 
reason 
https://docs.python.org/3/library/importlib.html#importlib.invalidate_caches is 
offered as a supported public API.

Ideally, the code that is dynamically creating packages at runtime will be 
calling that itself, but if it isn't, then the integrating application needs to 
take care of calling it at appropriate points in the program execution.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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

Reply via email to