[issue2439] Patch to add a get_data function to pkgutil

Phillip J. Eby report at bugs.python.org
Fri Mar 21 14:51:37 CET 2008


Phillip J. Eby <pje at telecommunity.com> added the comment:

Why does it need to be a valid loader?  It's a mock, not a real 
loader.  But if it really bothers you, have it increment a global in 
the module or something, and put the assertion in the test 
proper.  Heck, have it update a counter in the module it returns, 
making it into a loader that keeps track of how many times you reload 
the same module.  Then it's a useful example loader.  :)

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2439>
__________________________________


More information about the Python-bugs-list mailing list