Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Finish properly hiding importlib implementation code. | Brett Cannon | 2009-03-12 | 9 | -28/+34 |
| | |||||
* | Implement importlib.util.set_loader: a decorator to automatically set | Brett Cannon | 2009-03-10 | 3 | -4/+9 |
| | | | | __loader__ on modules. | ||||
* | Implement get_source for importlib.abc.PyLoader using source_path and get_data. | Brett Cannon | 2009-03-10 | 1 | -9/+32 |
| | |||||
* | Introduce importlib.abc. The module contains various ABCs related to imports | Brett Cannon | 2009-03-09 | 5 | -98/+438 |
| | | | | | | | (mostly stuff specified by PEP 302). There are two ABCs, PyLoader and PyPycLoader, which help with implementing source and source/bytecode loaders by implementing load_module in terms of other methods. This removes a lot of gritty details loaders typically have to worry about. | ||||
* | Remove a dead XXX comment. | Brett Cannon | 2009-03-09 | 1 | -1/+0 |
| | |||||
* | Make importlib.test.source.util.write_bytecode reset sys.dont_write_bytecode. | Brett Cannon | 2009-03-09 | 1 | -1/+5 |
| | |||||
* | Skip case-sensitivity tests for extension modules if _testcapi cannot be found. | Brett Cannon | 2009-03-08 | 1 | -0/+2 |
| | |||||
* | Rename importlib.util.set___package__ to set_package. | Brett Cannon | 2009-03-04 | 1 | -3/+3 |
| | |||||
* | Add a test for importlib.import_module. | Brett Cannon | 2009-03-04 | 1 | -1/+10 |
| | |||||
* | Expose importlib.util.set___package__. | Brett Cannon | 2009-03-02 | 1 | -1/+50 |
| | |||||
* | Refactor source and bytecode file loaders in importlib so that there | Brett Cannon | 2009-02-21 | 2 | -13/+13 |
| | | | | are source-only and source/bytecode loaders. | ||||
* | Separate out finder for source and source/bytecode. | Brett Cannon | 2009-02-21 | 2 | -2/+2 |
| | |||||
* | Do some cleanup in importlib: | Brett Cannon | 2009-02-21 | 7 | -9/+9 |
| | | | | | | | + Ditch using arguments to super(). + Ditch subclassing from object directly. + Move directory check out of chaining path hook to file path hook/finder. + Rename some classes to better reflect they are finders, not importers. | ||||
* | Implement the more specific PEP 302 semantics for loaders and what happens upon | Brett Cannon | 2009-02-17 | 1 | -0/+69 |
| | | | | | | load failure in relation to reloads. Also expose importlib.util.module_for_loader to handle all of the details of this along with making sure all current loaders behave nicely. | ||||
* | Change importlib.machinery.PathFinder to not have implicit semantics (that's | Brett Cannon | 2009-02-15 | 2 | -34/+35 |
| | | | | not handled by importlib._bootstrap._DefaultPathFinder). | ||||
* | Add the missing importlib.test.extension.util. | Brett Cannon | 2009-02-07 | 1 | -0/+21 |
| | |||||
* | Factor out helper code from importlib.test.extension.test_path_hook. | Brett Cannon | 2009-02-07 | 5 | -40/+21 |
| | |||||
* | Move importlib completely over to using rpartition and accepting the empty | Brett Cannon | 2009-02-07 | 2 | -2/+3 |
| | | | | string for top-level modules. | ||||
* | Move importlib's built-in importer to use rpartition for __package__. | Brett Cannon | 2009-02-07 | 1 | -1/+1 |
| | |||||
* | Move importlib's frozen importer over to rpartition for setting __package__. | Brett Cannon | 2009-02-07 | 1 | -1/+1 |
| | |||||
* | Rewrite the code implementing __import__ for importlib. Now it is much simpler | Brett Cannon | 2009-02-07 | 5 | -150/+15 |
| | | | | | | | | | 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). | ||||
* | Finish implementing tests for importlib.machinery.PathFinder by testing that | Brett Cannon | 2009-02-06 | 1 | -4/+19 |
| | | | | implicit hooks are handled properly. | ||||
* | Add tests for using sys.path_hooks by importlib.machinery.PathFinder. | Brett Cannon | 2009-02-05 | 1 | -2/+10 |
| | |||||
* | Implement test for sys.path_importer_cache having None for | Brett Cannon | 2009-02-05 | 1 | -2/+14 |
| | | | | importlib.machinery.PathFinder. | ||||
* | Begin writing tests for importlib.machinery.PathFinder. | Brett Cannon | 2009-02-05 | 1 | -1/+57 |
| | |||||
* | Move import semantic util code to importlib.test.import_.util. | Brett Cannon | 2009-02-01 | 9 | -88/+99 |
| | |||||
* | Rename importlib.test.support to importlib.test.util. | Brett Cannon | 2009-02-01 | 21 | -191/+159 |
| | |||||
* | Do not execute the .pyc/.pyo files as well as the .py files. | Brett Cannon | 2009-02-01 | 1 | -1/+4 |
| | |||||
* | Split out support code that is specific to source tests out of | Brett Cannon | 2009-02-01 | 7 | -110/+123 |
| | | | | importlib.test.support to importlib.test.source.util. | ||||
* | Move source loader tests (including reload tests) over to | Brett Cannon | 2009-02-01 | 2 | -73/+72 |
| | | | | importlib.test.abc.LoaderTests. | ||||
* | Fix importlib.machinery.FrozenImporter.load_module() to set __package__ | Brett Cannon | 2009-02-01 | 1 | -18/+51 |
| | | | | | properly. Discovered by also moving the loader tests over to importlib.test.abc.LoaderTests. | ||||
* | Move extension module loader tests over to importlib.test.abc.LoaderTests. | Brett Cannon | 2009-02-01 | 1 | -3/+22 |
| | |||||
* | Move built-in loader tests to importlib.test.abc.LoaderTests. | Brett Cannon | 2009-02-01 | 1 | -3/+23 |
| | |||||
* | Merge testing ABCs for importlib into importlib.test.abc. | Brett Cannon | 2009-01-30 | 6 | -47/+45 |
| | |||||
* | Initial take on importlib.test.loader_tests. | Brett Cannon | 2009-01-27 | 1 | -0/+61 |
| | |||||
* | Move importlib.test.frozen.test_finder over to importlib.test.finder_tests. | Brett Cannon | 2009-01-27 | 1 | -5/+8 |
| | |||||
* | Move importlib.test.builtin.test_finder over to importlib.test.finder_tests. | Brett Cannon | 2009-01-27 | 1 | -8/+27 |
| | |||||
* | Make importlib.test.finder_tests an ABC. | Brett Cannon | 2009-01-27 | 1 | -14/+14 |
| | |||||
* | Move importlib.test.extension.test_finder over to importlib.test.finder_tests. | Brett Cannon | 2009-01-27 | 1 | -2/+19 |
| | |||||
* | Add importlib.machinery with its first tenants, BuitinImporter and | Brett Cannon | 2009-01-22 | 4 | -7/+8 |
| | | | | | | | | 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). | ||||
* | Remove a debugging print statement that accidentally got left in. | Brett Cannon | 2009-01-19 | 1 | -1/+0 |
| | |||||
* | Tests of case-sensitivity were being executed on OSs which did not have a | Brett Cannon | 2009-01-18 | 3 | -4/+13 |
| | | | | | | case-insensitive file system, leading to test failures. This was due to using the TestCase objects directly instead of the guard in the test_main() function. Move over to a class decorator instead to control if the tests should be run. | ||||
* | Skip over any file or folder that starts with a dot (e.g. .svn). | Brett Cannon | 2009-01-18 | 1 | -0/+3 |
| | |||||
* | Add initial implementation of importlib. See the NOTES files for what is | Brett Cannon | 2009-01-18 | 31 | -0/+2142 |
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. |