| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This should make the Linux distros happy as it is now easier to leave
importlib's tests out of their base Python distribution.
|
|
|
|
|
| |
working without _frozen_importlib by moving to an import over a direct
access in sys.modules.
|
|
|
|
| |
importlib.__init__, then catch the KeyError raised, not ImportError.
|
|
|
|
|
|
| |
The long-term goal is to deprecate imp.find_module() in favour of this
API, but it will take some time as some APIs explicitly return/use what
imp.find_module() returns.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Obviously one shouldn't do whole sale conversions like this, but I was already
going through the test code and I was bored at the airport.
|
| |
|
|
|
|
|
|
|
|
|
| |
and relies much more on meta path finders to abstract out various parts of
import.
As part of this the semantics for import_module tightened up and now follow
__import__ much more closely (biggest thing is that the 'package' argument must
now already be imported, else a SystemError is raised).
|
| |
|
|
planned for the package.
There are no docs yet, but they are coming once the API for the first new
function, importlib.import_module() is finalized.
|