[issue15292] import hook behavior documentation improvement

2012-11-17 Thread Brett Cannon
Brett Cannon added the comment: Closing as works for me due to lack of reply from OP. -- resolution: - works for me status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15292

[issue15292] import hook behavior documentation improvement

2012-07-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: So I can't reproduce the problem under Python 2.7.3, Python 3.2.3, or a fresh checkout of Python 3.3. This is with both your script, Anders, and writing my own class that defined find_module() to just raise ImportError that I set in either

[issue15292] import hook behavior documentation improvement

2012-07-08 Thread Anders Hammarquist
New submission from Anders Hammarquist i...@iko.pp.se: When testing Eutaxia on PyPy (1.9) I discovered a discrepancy in the path_hooks import hook implementation. In CPython (2.7), if the find_module() method raises ImportError (as imp.find_module() does when it does not find a module in the

[issue15292] import hook behavior documentation improvement

2012-07-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brett.cannon, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15292 ___ ___

[issue15292] import hook behavior documentation improvement

2012-07-08 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The PyPy and 3.3 behaviour are actually correct according to the spec, but it's *really* unclear in PEP 302. sys.meta_path accepts finder objects. These are explicitly documented as returning None from find_module() to indicate try the next

[issue15292] import hook behavior documentation improvement

2012-07-08 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Everything Nick said is right: PyPy did it properly according to the spec and CPython 2.7 got it wrong. Unfortunately fixing this now would break code and so it will simply have to stay a Python 2.7 quirk with Python 3.3 and later doing it

[issue15292] import hook behavior documentation improvement

2012-07-08 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Perhaps the porting section in the 3.3 What's New? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15292 ___