Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rewrite the code implementing __import__ for importlib. Now it is much simpler | Brett Cannon | 2009-02-07 | 1 | -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 Cannon | 2009-02-06 | 1 | -0/+43 | |
| | | | | and import_module. | |||||
* | Add tests for using sys.path_hooks by importlib.machinery.PathFinder. | Brett Cannon | 2009-02-05 | 1 | -1/+1 | |
| | ||||||
* | Rename importlib._bootstrap.SysPathFinder to PathFinder and expose off of | Brett Cannon | 2009-02-05 | 1 | -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 to | Brett Cannon | 2009-02-02 | 1 | -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 Cannon | 2009-02-01 | 1 | -30/+7 | |
| | ||||||
* | Ditch read_source() and read_bytecode() and replace with *_path() and | Brett Cannon | 2009-02-01 | 1 | -39/+8 | |
| | | | | get_data(). | |||||
* | Expose source_path and bytecode_path on _PyFileLoader. | Brett Cannon | 2009-02-01 | 1 | -9/+12 | |
| | ||||||
* | Fix importlib.machinery.FrozenImporter.load_module() to set __package__ | Brett Cannon | 2009-02-01 | 1 | -1/+6 | |
| | | | | | properly. Discovered by also moving the loader tests over to importlib.test.abc.LoaderTests. | |||||
* | Document both importlib.machinery.BuiltinImporter and FrozenImporter. | Brett Cannon | 2009-01-25 | 1 | -2/+2 | |
| | ||||||
* | Add importlib.machinery with its first tenants, BuitinImporter and | Brett Cannon | 2009-01-22 | 1 | -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 Cannon | 2009-01-19 | 1 | -1/+1 | |
| | | | | Closes issue 4993. Thanks Antoine Pitrou for the catch. | |||||
* | Add initial implementation of importlib. See the NOTES files for what is | Brett Cannon | 2009-01-18 | 1 | -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. |