mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _bootstrap.py | ||
| abc.py | ||
| machinery.py | ||
| util.py | ||