Brett Cannon added the comment:

I have attached the test suite and two versions: one using a mixin and one 
using a proxy. Neither solve the issue of import touching the module in any way 
to check __loader__ and __package__. The mixin version is also failing one test 
which could quite possibly be a pain to fix and so it might cause me to prefer 
the proxy solution.

----------
Added file: http://bugs.python.org/file30672/lazy_proxy.py

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

Reply via email to