Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #12599: Be more strict in accepting None vs. a false-like object | Brett Cannon | 2012-04-18 | 5 | -1205/+1233 |
| | | | | | | | in importlib. Thanks to PJE for pointing out the issue and Nick Coghlan for filing the bug. | ||||
* | Issue #13959: Re-implement imp.load_compiled() in imp.py. | Brett Cannon | 2012-04-17 | 2 | -81/+20 |
| | |||||
* | Issue #14592: A relative import will raise a KeyError if __package__ | Brett Cannon | 2012-04-17 | 3 | -1/+10 |
| | | | | | | or __name__ are not set in globals. Thanks to Stefan Behnel for the bug report. | ||||
* | Fix #14600. Correct reference handling and naming of ImportError convenience ↵ | Brian Curtin | 2012-04-17 | 5 | -53/+31 |
| | | | | function | ||||
* | Issue #5113: Fix a test_posix failure on HP-UX, where non-root users can | Charles-François Natali | 2012-04-17 | 1 | -2/+9 |
|\ | | | | | | | chown() to root under certain circumstances. | ||||
| * | Issue #5113: Fix a test_posix failure on HP-UX, where non-root users can | Charles-François Natali | 2012-04-17 | 1 | -2/+9 |
| | | | | | | | | chown() to root under certain circumstances. | ||||
* | | Issue #14087: multiprocessing: add Condition.wait_for(). Patch by sbt. | Charles-François Natali | 2012-04-17 | 5 | -0/+113 |
| | | |||||
* | | Speed up reading of small files. This avoids multiple C read() calls on pyc ↵ | Antoine Pitrou | 2012-04-17 | 1 | -3/+11 |
| | | | | | | | | files. | ||||
* | | #14603: use a listcomp in ZipFile.namelist. | Ezio Melotti | 2012-04-17 | 1 | -4/+1 |
| | | |||||
* | | Properly guard against special-casing. | Brett Cannon | 2012-04-17 | 1 | -1/+1 |
| | | |||||
* | | Issue #13959: Re-implement imp.load_source() in imp.py. | Brett Cannon | 2012-04-17 | 2 | -391/+28 |
| | | |||||
* | | Issue #14599: Fix an import caching race condition. | Brett Cannon | 2012-04-17 | 1 | -0/+1 |
| | | |||||
* | | Issue #14599: Make test_reprlib robust against import cache race | Brett Cannon | 2012-04-17 | 1 | -0/+7 |
| | | | | | | | | conditions when regrtest is run with its -j option. | ||||
* | | Issue #13959: Fix a logic bug. | Brett Cannon | 2012-04-17 | 1 | -1/+1 |
| | | |||||
* | | Merged cookbook corrections from 3.2. | Vinay Sajip | 2012-04-16 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Corrected version numbers in cookbook example. | Vinay Sajip | 2012-04-16 | 1 | -2/+2 |
| | | |||||
* | | Add versionadded tags to newly added ImportError convenience functions. | Brian Curtin | 2012-04-16 | 1 | -0/+5 |
| | | |||||
* | | Correct warnings when building the docs for the nonexistet :arg: role. ↵ | Brian Curtin | 2012-04-16 | 1 | -5/+5 |
| | | | | | | | | Changed to asterisks. | ||||
* | | Add documentation for the new PyErr_SetFromImport* functions | Brian Curtin | 2012-04-16 | 1 | -0/+18 |
| | | |||||
* | | Fix another refleak | Antoine Pitrou | 2012-04-16 | 1 | -3/+7 |
| | | |||||
* | | Fix a refleak | Antoine Pitrou | 2012-04-16 | 1 | -2/+3 |
| | | |||||
* | | pep8-ize test names | Antoine Pitrou | 2012-04-16 | 1 | -3/+3 |
| | | |||||
* | | Fix refleak in test_gc | Antoine Pitrou | 2012-04-16 | 1 | -1/+2 |
| | | |||||
* | | Fix reference loss on Py_None when None is encountered in sys.modules. | Antoine Pitrou | 2012-04-16 | 1 | -0/+1 |
| | | |||||
* | | Avoid compiler warning due to stray \x00 | Antoine Pitrou | 2012-04-16 | 2 | -3/+3 |
| | | |||||
* | | Avoid rebuilding all C files when importlib.h is updated. | Antoine Pitrou | 2012-04-16 | 1 | -1/+2 |
| | | |||||
* | | Add an explicit mention of a backwards-incompatible fix that importlib ↵ | Brett Cannon | 2012-04-16 | 1 | -0/+3 |
| | | | | | | | | implicitly fixed. | ||||
* | | Closes #14452: brought tests in line with removal of BOM insertion code. | Vinay Sajip | 2012-04-16 | 1 | -3/+3 |
| | | |||||
* | | Merged tweaks to cookbook example from 3.2. | Vinay Sajip | 2012-04-16 | 1 | -5/+5 |
|\ \ | |/ | |||||
| * | Tweaked format of cookbook example. | Vinay Sajip | 2012-04-16 | 1 | -5/+5 |
| | | |||||
* | | Merged cookbook update from 3.2. | Vinay Sajip | 2012-04-16 | 1 | -0/+44 |
|\ \ | |/ | |||||
| * | Added cookbook example for BOM insertion. | Vinay Sajip | 2012-04-16 | 1 | -0/+44 |
| | | |||||
* | | Closes #14452: remove BOM insertion code. | Vinay Sajip | 2012-04-16 | 2 | -1/+3 |
|\ \ | |/ | |||||
| * | Closes #14452: remove BOM insertion code. | Vinay Sajip | 2012-04-16 | 2 | -2/+2 |
| | | |||||
* | | Fix #10854. Make use of the new path and name attributes on ImportError | Brian Curtin | 2012-04-16 | 3 | -2/+25 |
| | | | | | | | | for extension modules on Windows. | ||||
* | | merge | Brett Cannon | 2012-04-16 | 2 | -112/+114 |
|\ \ | |||||
| * \ | Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a ↵ | Antoine Pitrou | 2012-04-16 | 2 | -112/+114 |
| |\ \ | | |/ | | | | | | | test failure in test_ssl. | ||||
| | * | Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a ↵ | Antoine Pitrou | 2012-04-16 | 2 | -112/+117 |
| | | | | | | | | | | | | test failure in test_ssl. | ||||
* | | | Issue #13959: Re-implement imp.load_package() in imp.py. | Brett Cannon | 2012-04-16 | 2 | -173/+17 |
|/ / | | | | | | | | | Thanks to Eric Snow for helping with imp.load_module() (previous commit) which led to the removal of a bunch of C code. | ||||
* | | Issue #13959: Re-implement imp.load_module() in imp.py. | Brett Cannon | 2012-04-16 | 2 | -54/+28 |
| | | |||||
* | | merge | Brett Cannon | 2012-04-15 | 9 | -75/+369 |
|\ \ | |||||
| * | | Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType | Victor Stinner | 2012-04-15 | 9 | -75/+369 |
| | | | |||||
* | | | Consider load_dynamic() something to keep in _imp. | Brett Cannon | 2012-04-15 | 1 | -3/+4 |
| | | | |||||
* | | | Try to get hg to treat importlib.h as binary. | Brett Cannon | 2012-04-15 | 2 | -0/+2 |
|/ / | |||||
* | | Issue #13959: Simplify imp.reload() by relying on a module's | Brett Cannon | 2012-04-15 | 2 | -34/+13 |
| | | | | | | | | | | | | | | | | | | | | __loader__. Since import now sets __loader__ on all modules it creates and imp.reload() already relied on the attribute for modules that import didn't create, the only potential compatibility issue is if people were deleting the attribute on modules and expecting imp.reload() to continue to work. | ||||
* | | Update importlib.h | Brett Cannon | 2012-04-15 | 1 | -2616/+2616 |
| | | |||||
* | | Issue #13959: Rename imp to _imp and add Lib/imp.py and begin | Brett Cannon | 2012-04-15 | 10 | -2808/+2844 |
| | | | | | | | | | | | | | | rewriting functionality in pure Python. To start, imp.new_module() has been rewritten in pure Python, put into importlib (privately) and then publicly exposed in imp. | ||||
* | | merge | Brett Cannon | 2012-04-15 | 1 | -2/+2 |
|\ \ | |||||
| * | | utilize startswith(tuple) | Philip Jenvey | 2012-04-15 | 1 | -2/+2 |
| | | | |||||
* | | | Issue #14582: Import returns the module returned by a loader instead | Brett Cannon | 2012-04-15 | 5 | -500/+494 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of sys.modules when possible. This is being done for two reasons. One is to gain a little bit of performance by skipping an unnecessary dict lookup in sys.modules. But the other (and main) reason is to be a little bit more clear in how things should work from the perspective of import's interactions with loaders. Otherwise loaders can easily forget to return the module even though PEP 302 explicitly states they are expected to return the module they loaded. |