Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 78619:0d52f125dd32
Issue #15715: Ignore failed imports triggered by the use of fromlist.
When the fromlist argument is specified for __import__() and the
attribute doesn't already exist, an import is attempted. If that fails
(e.g. module doesn't exist), the ImportError will now be silenced (for
backwards-compatibility). This *does not* affect
``from ... import ...`` statements.
Thanks to Eric Snow for the patch and Simon Feltman for reporting the
regression.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Fri, 17 Aug 2012 13:21:16 -0400 |
| parents | 92c6bbf7bb85 |
| children | 4754c4a710e6 |
comparison
equal
deleted
inserted
replaced
| 78618:0cd35f4a0091 | 78619:0d52f125dd32 |
|---|
