[Python-Dev] cpython: Issue #15168: Move importlb.test to test.test_importlib. (original) (raw)
Andrew Svetlov andrew.svetlov at gmail.com
Fri Jul 20 22:25:48 CEST 2012
- Previous message: [Python-Dev] cpython: Issue #15168: Move importlb.test to test.test_importlib.
- Next message: [Python-Dev] cpython: Issue #15168: Move importlb.test to test.test_importlib.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
+1
On Fri, Jul 20, 2012 at 11:25 PM, R. David Murray <rdmurray at bitdance.com> wrote:
On Fri, 20 Jul 2012 22:12:26 +0200, Antoine Pitrou <solipsis at pitrou.net> wrote:
On Fri, 20 Jul 2012 20:49:03 +0200 (CEST) brett.cannon <python-checkins at python.org> wrote: > diff --git a/Lib/importlib/test/init.py b/Lib/test/testimportlib/init.py > rename from Lib/importlib/test/init.py > rename to Lib/test/testimportlib/init.py > --- a/Lib/importlib/test/init.py > +++ b/Lib/test/testimportlib/init.py > @@ -1,5 +1,6 @@ > import os > import sys > +from .. import support
I don't know if I'm only speaking for myself, but I really have trouble parsing non-trivial relative imports, and I personally prefer when people use absolute imports (e.g. "from test import support"). Agreed. I don't see that there is any reason to use relative imports in the stdlib. --David
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/andrew.svetlov%40gmail.com
-- Thanks, Andrew Svetlov
- Previous message: [Python-Dev] cpython: Issue #15168: Move importlb.test to test.test_importlib.
- Next message: [Python-Dev] cpython: Issue #15168: Move importlb.test to test.test_importlib.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]