Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
___
Brett Cannon added the comment:
Here are two possible tests.
1) __import__('distutils', fromlist=['_i_do_not_exist']) should return distutils
2) Use a fake loader which executes some code which does nothing more than
tries to import a non-existent module. The trick with this test is that the
Roundup Robot added the comment:
New changeset 09b5158d5284 by Brett Cannon in branch '3.3':
Closes issue #15111: Calling __import__ with a module specified in
http://hg.python.org/cpython/rev/09b5158d5284
New changeset 31db8e3272f1 by Brett Cannon in branch 'default':
Merge fix for issue
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
Brett Cannon added the comment:
This can get fixed in 3.3.1, which is why I left Python 3.3 as an affected
version.
Hopefully I can get to a fix this week. I need to write a test showing that a
module that doesn't exist as specified in a fromlist is silently ignored, but
if a module in a
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
Yury Selivanov added the comment:
Brett, can we patch 3.3 too? (in 3.3.1 version?)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
___
Yury Selivanov added the comment:
I don't know why, but it seems that the bug reappeared in 3.3.
Examples:
1. --- (python 3.4 from repo)
yury@sxair ~/dev/py/python (master) $ ./python.exe
Python 3.4.0a0 (default, Oct 5 2012, 15:08:35)
[GCC 4.2.1 Compatible Apple Clang 4.1
Changes by Brett Cannon br...@python.org:
--
keywords: +3.2regression
resolution: fixed -
status: closed - open
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
Chris Jerdonek added the comment:
I don't know why, but it seems that the bug reappeared in 3.3.
Part of it could be that the original fix added no tests.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
Brett Cannon added the comment:
http://hg.python.org/cpython/rev/dc18a2a66d16 did add a test, just not the
right one.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
Brett Cannon added the comment:
Actually, I take it back, it removed a test without adding a new one. Obviously
that's my bad.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
nosy: +cjerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
___
Brett Cannon br...@python.org added the comment:
That cannot import name message seems to only come from
Python/ceval.c:import_from() which raises that exception when an AttributeError
is raised by an 'import from' statement (I think). This happens when an 'import
from' asks for a name on the
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset dc18a2a66d16 by Brett Cannon in branch 'default':
Issue #15111: When a module was imported using a 'from import'
http://hg.python.org/cpython/rev/dc18a2a66d16
--
nosy: +python-dev
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
New submission from Amaury Forgeot d'Arc amaur...@gmail.com:
Up to Python3.2, a nested ImportError was correctly displayed:
./python -c import distutils.msvc9compiler
Traceback (most recent call last):
File string, line 1, in module
File
R. David Murray rdmur...@bitdance.com added the comment:
To clarify Amaury's example:
rdmurray@hey:~/python/p33./python -c import distutils.msvc9compiler
Traceback (most recent call last):
File string, line 1, in module
File frozen importlib._bootstrap, line 1288, in _find_and_load
Changes by R. David Murray rdmur...@bitdance.com:
--
Removed message: http://bugs.python.org/msg163238
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15111
___
R. David Murray rdmur...@bitdance.com added the comment:
To clarify Amaury's example:
rdmurray@hey:~/python/p32./python -c from distutils import msvc9compiler
Traceback (most recent call last):
File string, line 1, in module
File /home/rdmurray/python/p32/Lib/distutils/msvc9compiler.py,
20 matches
Mail list logo