Paul Nasrat pnas...@gmail.com added the comment:
We've taken a simpler approach avoiding walk_packages in pip which we'll
release for 3.3. I'd say if pkgutil doesn't work correctly with importers
loaders outside of it we probably should make that very explicit in the docs,
and potentially
Paul Nasrat pnas...@gmail.com added the comment:
Ok so it seems I can't just use sys.meta_path in pip to work with ImpImporter
due to according to the pydoc:
Note that ImpImporter does not currently support being used by placement on
sys.meta_path.
I guess I can write a custom importer
New submission from Paul Nasrat pnas...@gmail.com:
Whilst looking for workarounds to http://bugs.python.org/issue14982 I came
across this, which is due to inspect using warnings without having importing it.
Fix is trivial but can upload a patch
Traceback (most recent call last):
File t.py
Paul Nasrat pnas...@gmail.com added the comment:
I stepped through in pdb
(Pdb) p i
_frozen_importlib.FileFinder object at 0x101066090
(Pdb) iter_importer_modules(i, prefix)
[]
(Pdb) p hasattr(importer, 'iter_modules')
False
2.7 uses
[pkgutil.ImpImporter instance at 0x107a4d830]
(Pdb) pp dir
Paul Nasrat pnas...@gmail.com added the comment:
I was pretty tired when debugging last night and just quickly looked at hg
logs, so that may be misattributed.
I'll try come up with a clearer reproducer.
--
___
Python tracker rep...@bugs.python.org
Changes by Paul Nasrat pnas...@gmail.com:
--
nosy: +pnasrat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9207
___
___
Python-bugs-list mailing
Changes by Paul Nasrat pnas...@googlemail.com:
--
nosy: +pnasrat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3959
___
___
Python-bugs-list