[issue13977] importlib simplification

2012-02-17 Thread Brett Cannon
Brett Cannon added the comment: So I simply swapped out the code and the tests fail. Then I realized why: while the assumption is right, that does not mean that that name passed to __import__() isn't relative and thus shifts what need to be returned (the else clause case). That's why it's a s

[issue13977] importlib simplification

2012-02-15 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13977] importlib simplification

2012-02-09 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13977] importlib simplification

2012-02-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> brett.cannon stage: -> needs patch type: -> enhancement versions: +Python 3.3 ___ Python tracker ___

[issue13977] importlib simplification

2012-02-09 Thread Jim Jewett
New submission from Jim Jewett : http://hg.python.org/cpython/file/aba513307f78/Lib/importlib/_bootstrap.py#l974 974 # The hell that is fromlist ... 975 if not fromlist: 976 # Return up to the first dot in 'name'. This is complicated by the fact 977 # that 'name'