summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Rewrite the code implementing __import__ for importlib. Now it is much simplerBrett Cannon2009-02-071-308/+81
| | | | | | | | | 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).
* Initial, untested stab at writing a common denominator function for __import__Brett Cannon2009-02-061-0/+43
| | | | and import_module.
* Add tests for using sys.path_hooks by importlib.machinery.PathFinder.Brett Cannon2009-02-051-1/+1
|
* Rename importlib._bootstrap.SysPathFinder to PathFinder and expose off ofBrett Cannon2009-02-051-18/+16
| | | | importlib.machinery. Also make the methods either class or staticmethods.
* To prevent another screw-up on my part where my prototype gets lost thanks toBrett Cannon2009-02-021-0/+76
| | | | | | an ``svn revert`` (gee, maybe more atomic commits by use of something like a DVCS would help with this? Wish someone would get on that ...), I am checking in an untested, work-in-progress meta path finder to handle sys.path.
* Simplify write_bytecode for importlib.Brett Cannon2009-02-011-30/+7
|
* Ditch read_source() and read_bytecode() and replace with *_path() andBrett Cannon2009-02-011-39/+8
| | | | get_data().
* Expose source_path and bytecode_path on _PyFileLoader.Brett Cannon2009-02-011-9/+12
|
* Fix importlib.machinery.FrozenImporter.load_module() to set __package__Brett Cannon2009-02-011-1/+6
| | | | | properly. Discovered by also moving the loader tests over to importlib.test.abc.LoaderTests.
* Document both importlib.machinery.BuiltinImporter and FrozenImporter.Brett Cannon2009-01-251-2/+2
|
* Add importlib.machinery with its first tenants, BuitinImporter andBrett Cannon2009-01-221-67/+24
| | | | | | | | FrozenImporter. Docs forthcoming. I plan on all finders and loaders (and most likely hooks) to live in imoprtlib.machinery. Utility stuff will end up in importlib.util. Higher-level API stuff will stay on imoprtlib directly (e.g. import_module).
* Fix a typo in some code that is not tested or supported yet.Brett Cannon2009-01-191-1/+1
| | | | Closes issue 4993. Thanks Antoine Pitrou for the catch.
* Add initial implementation of importlib. See the NOTES files for what isBrett Cannon2009-01-181-0/+997
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.