[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-10-10 Thread Berker Peksag
Changes by Berker Peksag : -- stage: test needed -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9f71bc6d897 by Brett Cannon in branch 'default': Issue #21052: Don't raise ImportWarning for sys.meta_path or https://hg.python.org/cpython/rev/d9f71bc6d897 -- nosy: +python-dev ___ Python tracker

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-10-10 Thread Brett Cannon
Brett Cannon added the comment: Fixed in https://hg.python.org/cpython/rev/d9f71bc6d897 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-10-09 Thread Quentin Pradet
Changes by Quentin Pradet : -- nosy: +Quentin.Pradet ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-09-24 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-07-06 Thread Masami HIRATA
Masami HIRATA added the comment: Hi, I can reproduce this issue with the following steps. $ uname -a Linux ashrose 3.2.0-65-generic #99-Ubuntu SMP Fri Jul 4 21:03:29 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ python3.4 --version Python 3.4.1 $ touch spam.txt $ python3.4 -Wa -c "class A: pass; a

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-05-20 Thread Simon de Vlieger
Changes by Simon de Vlieger : -- nosy: +ikanobori ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-03-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-03-24 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-03-24 Thread Brett Cannon
Brett Cannon added the comment: It's a simple `if not sys.meta_path` check so it doesn't differentiate. But that's actually a good point about it being None in this case due to the shutdown; if the check changed to `if sys.meta_path is not None and len(sys.meta_path) == 0` then that should ski

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that in issue #21409, sys.meta_path isn't "empty", it is actually None. Another possibility is to drop those warnings only when the interpreter is shutting down (it would be easy to add a private API in sys to get that information). -- nosy: +pit

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-03-24 Thread Brett Cannon
Brett Cannon added the comment: I should also say that dropping warnings leaves only a single case of ImportWarning related to empty directory names (in relation to Finder.find_module()). Once that can go away that will eliminate all uses of warnings in importlib and thus won't necessitate imp

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-03-24 Thread Brett Cannon
New submission from Brett Cannon: Issue #21049 managed to trigger a huge output of "ImportWarning: sys.meta_path is empty" because it managed to trigger an import during interpreter shutdown. The ImportWarning for sys.path_hooks and sys.meta_path were originally added because before importlib